Skip to content

fix: write the shadow-scale Add button's disabled flag only when it changes - #5261

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5181
Nov 3, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5181

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The shadow-scale playground (from #4875) set this.#parts.add.disabled on every repaint. The disabled setter rewrites the attribute even when its value is already set, so each repaint at the layer limit restated the flag. The suite's write watch reports that as unchanged write: disabled on button.ws-add, which failed test_presses_and_fills_leave_no_element_naming_stale_keys[shadow-scale] on Linux and macOS in the scheduled run. The paint now calls toggleAttribute("disabled", …), which writes only when the flag changes. The keeps.js header recommends this for a flag. The button is disabled in the same states as before.

The journey failed on current main with that exact message and passes with the change. test_a_page_drawn_preset_sets_its_whole_slice_as_one_gesture in tests/browser/widgets/test_playgrounds.py also still passes.

Closes #5181 — automated triage

…hanges

The disabled setter rewrites the attribute on every set, so each repaint at
the layer limit restated it and the write watch failed the navigation sweep.
toggleAttribute writes only a change. The Add button's states are unchanged.

Closes #5181
@leaf-agent
leaf-agent merged commit f37e0f3 into main Nov 3, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5181 branch November 3, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shadow-scale example repeats an unchanged Add-button disabled write

1 participant