optimize style sheets, support tabIndex in popup
This commit is contained in:
@ -10,12 +10,16 @@ class Follower {
|
||||
}
|
||||
|
||||
async show(parent = document.body) {
|
||||
const tabIndex = Math.max.apply(null, [...document.querySelectorAll('[tabindex]')].map(e => e.tabIndex ?? 0)) + 3;
|
||||
|
||||
const gridContainer = createElement('div', 'follower-grid');
|
||||
const popup = createPopup(
|
||||
r('addFollowers', 'Add Followers'),
|
||||
createElement('div', 'follower-wrapper',
|
||||
createElement('div', div => div.innerText = r('whoWantReceiveCustomerNotification', 'Who do you want to receive customer notifications?')),
|
||||
createElement('input', search => {
|
||||
search.type = 'text';
|
||||
search.tabIndex = tabIndex + 3;
|
||||
search.className = 'ui-input follower-search';
|
||||
search.addEventListener('input', () => {
|
||||
const key = search.value;
|
||||
|
Reference in New Issue
Block a user