Skip to content

Key scraper table switches by site id (fixes #2286) - #2287

Open
moToroTor wants to merge 1 commit into
xbapps:masterfrom
moToroTor:fix/2286-scraper-switch-keys
Open

moToroTor wants to merge 1 commit into
xbapps:masterfrom
moToroTor:fix/2286-scraper-switch-keys

Conversation

@moToroTor

Copy link
Copy Markdown

Fixes #2286. Single-file, four-attribute change — nothing else piggybacked.

Verified by click-through on a fork build: disabling a site under 'Show enabled only' no longer leaves the next site rendering as disabled.

Without keys, Vue reuses row component instances by index: disabling
site A under 'Show enabled only' removes its row, and site B inherits
A's switch instance still showing off - while the data (and backend)
correctly have B enabled. Enabling the phantom-disabled B then really
disables it. Tying each switch to its site id forces a fresh instance
per row so the rendered state always follows the data.

Assisted-By: muse-spark-1.3
Coauthored-By: XbvrDFAgent
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.

Scraper table shows wrong enabled state after toggling under 'Show enabled only'

1 participant