Focus inputs inside modals
This commit is contained in:
parent
0173d28f48
commit
9799ecce10
@ -239,6 +239,12 @@
|
||||
}));
|
||||
},
|
||||
|
||||
afterRender () {
|
||||
this.el.addEventListener('shown.bs.modal', () => {
|
||||
this.el.querySelector('input[name="server"]').focus();
|
||||
}, false);
|
||||
},
|
||||
|
||||
openRoom (ev) {
|
||||
ev.preventDefault();
|
||||
const jid = ev.target.getAttribute('data-room-jid');
|
||||
@ -360,6 +366,12 @@
|
||||
}));
|
||||
},
|
||||
|
||||
afterRender () {
|
||||
this.el.addEventListener('shown.bs.modal', () => {
|
||||
this.el.querySelector('input[name="chatroom"]').focus();
|
||||
}, false);
|
||||
},
|
||||
|
||||
parseRoomDataFromEvent (form) {
|
||||
const data = new FormData(form);
|
||||
const jid = data.get('chatroom');
|
||||
|
@ -75,6 +75,12 @@
|
||||
}));
|
||||
},
|
||||
|
||||
afterRender () {
|
||||
this.el.addEventListener('shown.bs.modal', () => {
|
||||
this.el.querySelector('input[name="status_message"]').focus();
|
||||
}, false);
|
||||
},
|
||||
|
||||
clearStatusMessage (ev) {
|
||||
if (ev && ev.preventDefault) {
|
||||
ev.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user