Skip to content

fix: clear removed host style variables in applyHostStyleVariables - #878

Open
adityajai119 wants to merge 1 commit into
modelcontextprotocol:mainfrom
adityajai119:fix/w33-bug
Open

adityajai119 wants to merge 1 commit into
modelcontextprotocol:mainfrom
adityajai119:fix/w33-bug

Conversation

@adityajai119

Copy link
Copy Markdown

McpUiStyles values can be undefined. Previously applyHostStyleVariables skipped those entries, so when a host context update dropped a variable the old value stayed on the element. Now undefined values call removeProperty, clearing the stale CSS variable.

This branch has not been deployed

No deployments
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.

1 participant