Focus on name input area is active when a new item is created

This commit is contained in:
benguozakinci@gmail.com
2021-07-30 18:49:30 +03:00
parent 1e128aee96
commit db8507b856
4 changed files with 25 additions and 4 deletions

View File

@ -280,6 +280,8 @@ export default {
onItemList() {
this.show.item_list = true;
console.log(this.$refs['input-item-field-' + this._uid].focus());
setTimeout(function() {
this.$refs['input-item-field-' + this._uid].focus();
}.bind(this), 100);
@ -367,9 +369,8 @@ export default {
this.selected_items.push(item);
this.$emit('item', item);
this.$emit('item', item)
this.$emit('items', this.selected_items);
this.setItemList(this.items);
this.show.item_selected = false;