2
0
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:
18alantom 2022-01-11 12:33:49 +05:30
parent 6a9fd904b5
commit 55832f19ad
2 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,7 @@ export default {
},
methods: {
onFocus(e) {
e.target.select();
this.showInput = true;
this.$emit('focus', e);
},

View File

@ -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;
},