mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Make Ameri… erm, koel-focus great again
This commit is contained in:
parent
a46b278d80
commit
ccf93c0890
1 changed files with 2 additions and 2 deletions
|
@ -4,11 +4,11 @@ import Vue from 'vue';
|
|||
* A simple directive to set focus into an input field when it's shown.
|
||||
*/
|
||||
export default {
|
||||
bind (el, { value }) {
|
||||
update(el, { value }) {
|
||||
if (!value) {
|
||||
return;
|
||||
}
|
||||
|
||||
Vue.nextTick(() => el.focus());
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue