File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import * as PanelUtils from '../utils/utils.js';
2424
2525import requestConditionsDrawerStyles from './requestConditionsDrawer.css.js' ;
2626
27- const { ref} = Directives ;
27+ const { ref, live } = Directives ;
2828const { widgetConfig} = UI . Widget ;
2929
3030const UIStrings = {
@@ -439,10 +439,10 @@ export class RequestConditionsDrawer extends UI.Widget.VBox implements
439439 // clang-format off
440440 html `
441441 < input class =blocked-url-checkbox
442- @click =${ toggle }
442+ @change =${ toggle }
443443 type =checkbox
444444 title=${ i18nString ( UIStrings . enableThrottlingToggleLabel , { PH1 : constructorStringOrWildcardURL } ) }
445- .checked=${ enabled }
445+ .checked=${ live ( enabled ) }
446446 .disabled=${ ! editable || ! originalOrUpgradedURLPattern }
447447 jslog=${ VisualLogging . toggle ( ) . track ( { change : true } ) } >
448448 < devtools-button
@@ -519,7 +519,7 @@ export class RequestConditionsDrawer extends UI.Widget.VBox implements
519519 // clang-format off
520520 html `
521521 < input class =blocked-url-checkbox
522- @click =${ toggle }
522+ @change =${ toggle }
523523 type =checkbox
524524 .checked=${ condition . enabled }
525525 .disabled=${ ! editable }
You can’t perform that action at this time.
0 commit comments