mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 11:20:13 +01:00
use tracker afterFlush to set focus
This commit is contained in:
parent
a8a3c9ad19
commit
31eb9b26b4
1 changed files with 6 additions and 1 deletions
|
|
@ -287,7 +287,12 @@ CardCustomField.register('cardCustomField');
|
|||
let items = this.getItems();
|
||||
items.splice(idx + 1, 0, '');
|
||||
this.stringtemplateItems.set(items);
|
||||
//event.target.nextSibling.focus();
|
||||
|
||||
Tracker.afterFlush(() => {
|
||||
const element = this.findAll('input')[idx + 1];
|
||||
element.focus();
|
||||
element.value = '';
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue