Skip to content

Default to dom-context's provider using an element, allow customization of the element tag, and add an option to disable it.#561

Merged
NullVoxPopuli merged 4 commits into
mainfrom
nvp/dom-context-must-have-an-element-for-the-provider
Nov 21, 2025
Merged

Default to dom-context's provider using an element, allow customization of the element tag, and add an option to disable it.#561
NullVoxPopuli merged 4 commits into
mainfrom
nvp/dom-context-must-have-an-element-for-the-provider

Conversation

@NullVoxPopuli
Copy link
Copy Markdown
Contributor

It's not always safe to have the provider be element-less.

See this repro.

I've flipped the Provider component back to using an element for now, but added an argument to the Provider component (@element={{false}}) to allow the non-element behavior.

@NullVoxPopuli NullVoxPopuli added the bug Something isn't working label Nov 20, 2025
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 20, 2025

Project Preview URL
Docs https://257de117.ember-primitives.pages.dev

Logs

@NullVoxPopuli NullVoxPopuli force-pushed the nvp/dom-context-must-have-an-element-for-the-provider branch from 0e9c854 to ab169f8 Compare November 20, 2025 22:52
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review November 21, 2025 03:41
@NullVoxPopuli NullVoxPopuli changed the title Default to dom-context's provider using an element, but add an option to disable it. Default to dom-context's provider using an element, allow customization of the element tag, and add an option to disable it. Nov 21, 2025
@NullVoxPopuli NullVoxPopuli merged commit 1f5532a into main Nov 21, 2025
19 checks passed
@NullVoxPopuli NullVoxPopuli deleted the nvp/dom-context-must-have-an-element-for-the-provider branch November 21, 2025 04:07
@github-actions github-actions Bot mentioned this pull request Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant