mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
Fix visually glitchy Create button in element picker
The Create button was being unduly enabled for a fraction of second while editing the content of the filter text. This commit is candidate for a revision to current stable release.
This commit is contained in:
parent
428e4b8777
commit
80f58a6357
@ -458,7 +458,6 @@ const onCandidateChanged = function() {
|
|||||||
const filter = filterFromTextarea();
|
const filter = filterFromTextarea();
|
||||||
const bad = filter === '!';
|
const bad = filter === '!';
|
||||||
$stor('section').classList.toggle('invalidFilter', bad);
|
$stor('section').classList.toggle('invalidFilter', bad);
|
||||||
$id('create').disabled = bad;
|
|
||||||
if ( bad ) {
|
if ( bad ) {
|
||||||
$id('resultsetCount').textContent = 'E';
|
$id('resultsetCount').textContent = 'E';
|
||||||
$id('create').setAttribute('disabled', '');
|
$id('create').setAttribute('disabled', '');
|
||||||
@ -767,7 +766,7 @@ const showDialog = function(details) {
|
|||||||
|
|
||||||
dialog.querySelector('ul').style.display =
|
dialog.querySelector('ul').style.display =
|
||||||
netFilters.length || cosmeticFilters.length ? '' : 'none';
|
netFilters.length || cosmeticFilters.length ? '' : 'none';
|
||||||
dialog.querySelector('#create').disabled = true;
|
$id('create').setAttribute('disabled', '');
|
||||||
|
|
||||||
// Auto-select a candidate filter
|
// Auto-select a candidate filter
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user