mirror of
https://github.com/wekan/wekan.git
synced 2026-03-09 15:12:34 +01:00
Most Unicode Icons back to Font Awesome 4.7 for better accessibility. Less always visible buttons, More at ☰ Men.
Thanks to xet7 !
This commit is contained in:
parent
440f553de0
commit
7ad04f4535
84 changed files with 1828 additions and 1381 deletions
|
|
@ -24,6 +24,26 @@ InlinedForm = BlazeComponent.extendComponent({
|
|||
this.isOpen = new ReactiveVar(false);
|
||||
},
|
||||
|
||||
onRendered() {
|
||||
// Autofocus when form becomes open
|
||||
this.autorun(() => {
|
||||
if (this.isOpen.get()) {
|
||||
Tracker.afterFlush(() => {
|
||||
const input = this.find('textarea,input[type=text]');
|
||||
if (input && typeof input.focus === 'function') {
|
||||
setTimeout(() => {
|
||||
input.focus();
|
||||
// Select content if it exists (useful for editing)
|
||||
if (input.value && input.select) {
|
||||
input.select();
|
||||
}
|
||||
}, 50);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
onDestroyed() {
|
||||
currentlyOpenedForm.set(null);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue