mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
fix(ux): select curr on focus
- close popover on blur
This commit is contained in:
parent
6a9fd904b5
commit
55832f19ad
@ -42,6 +42,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onFocus(e) {
|
||||
e.target.select();
|
||||
this.showInput = true;
|
||||
this.$emit('focus', e);
|
||||
},
|
||||
|
@ -8,6 +8,7 @@
|
||||
:placeholder="placeholder"
|
||||
readonly
|
||||
@focus="!readonly ? togglePopover() : null"
|
||||
@blur="togglePopover(false)"
|
||||
/>
|
||||
</template>
|
||||
<template v-slot:content="{ togglePopover }">
|
||||
@ -157,7 +158,7 @@ export default {
|
||||
dates.at(-1),
|
||||
42 - dates.length
|
||||
);
|
||||
dates = dates.concat(...finalPadding)
|
||||
dates = dates.concat(...finalPadding);
|
||||
}
|
||||
return dates;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user