Skip to content

Conversation

@ZogStriP
Copy link
Member

Simplify preference saving by using the new
addSaveableUserField(name, { page: "emails" }) API.

This replaces manual value transformer registration and backward compatibility code with a single declarative API call.

cf. discourse/discourse#36757

Simplify preference saving by using the new
`addSaveableUserField(name, { page: "emails" })` API.

This replaces manual value transformer registration and backward
compatibility code with a single declarative API call.

cf. discourse/discourse#36757
The PreferenceCheckbox component doesn't properly propagate checkbox
state changes back to the model when used in plugin outlet contexts.
This caused the subscription preference to not be saved when users
toggled the checkbox.

Replace PreferenceCheckbox with a native checkbox element and an
explicit @action handler that calls model.set() when the checkbox
changes. This ensures the model value is properly updated before
the preferences are saved to the server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants