fix popup find error
This commit is contained in:
parent
6d721fe7a5
commit
9ed550c882
|
@ -92,9 +92,10 @@ async function initPopup(frames) {
|
||||||
|
|
||||||
const elFind = $('#find-styles-btn');
|
const elFind = $('#find-styles-btn');
|
||||||
elFind.onclick = async e => {
|
elFind.onclick = async e => {
|
||||||
elFind.disabled = e.type === 'click';
|
const inline = e.type === 'click';
|
||||||
|
if (inline) elFind.disabled = true;
|
||||||
await require(['/popup/search']);
|
await require(['/popup/search']);
|
||||||
Events.searchSite(e);
|
if (!inline) Events.searchSite(e);
|
||||||
};
|
};
|
||||||
elFind.on('split-btn', elFind.onclick);
|
elFind.on('split-btn', elFind.onclick);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user