豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 0e56341

Browse files
pfaffeDevtools-frontend LUCI CQ
authored andcommitted
Fix checkbox toggling in request conditions drawer
Fixed: 477868807 Change-Id: I2b62aeaec926cf685119ac1e75ecdb1ed1a3be1b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7511098 Commit-Queue: Philip Pfaffe <pfaffe@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
1 parent 8b8bbdc commit 0e56341

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

front_end/panels/network/RequestConditionsDrawer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import * as PanelUtils from '../utils/utils.js';
2424

2525
import requestConditionsDrawerStyles from './requestConditionsDrawer.css.js';
2626

27-
const {ref} = Directives;
27+
const {ref, live} = Directives;
2828
const {widgetConfig} = UI.Widget;
2929

3030
const 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}

0 commit comments

Comments
 (0)