Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove attribute from DOM when removing component (through mixin removal/update) #5492

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

mrxz
Copy link
Contributor

@mrxz mrxz commented Mar 7, 2024

Description:
Components on an entity are reflected in the DOM. In case an entities mixins change, some of its components might end up getting removed (a-entity.js#L614-L615). In this case the DOM attribute would remain. This PR ensures that, similar to initComponent the change is reflected in the DOM if not done already.

Changes proposed:

  • Remove DOM attribute in case removeComponent is called without being caused by a removeAttribute call.

@dmarcos
Copy link
Member

dmarcos commented Mar 7, 2024

Thank you!

@dmarcos dmarcos merged commit 555bd47 into aframevr:master Mar 7, 2024
1 check passed
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.

None yet

2 participants