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

Update component registration logic #267

Closed
sun-mota opened this issue Oct 17, 2024 · 0 comments · Fixed by #268
Closed

Update component registration logic #267

sun-mota opened this issue Oct 17, 2024 · 0 comments · Fixed by #268
Assignees
Labels
auro-button not-reviewed Issue has not been reviewed by Auro team member Type: Bug Bug or Bug fixes

Comments

@sun-mota
Copy link
Contributor

Please verify the version of auro-button you have installed

No response

Please describe the bug

Default import of index.js should register the default custom element only.

import of the component class should not register the custom element at all.

Remove all registration of custom-${component name} from the JS and only register as part of ./demo/index.js

Reproducing the error on the docsite

None

Expected behavior

No response

What browsers are you seeing the problem on?

No response

Additional context

No response

Exit criteria

No response

@sun-mota sun-mota added Type: Bug Bug or Bug fixes not-reviewed Issue has not been reviewed by Auro team member auro-button labels Oct 17, 2024
@sun-mota sun-mota self-assigned this Oct 17, 2024
@sun-mota sun-mota linked a pull request Oct 17, 2024 that will close this issue
6 tasks
sun-mota added a commit that referenced this issue Oct 21, 2024
AuroButton.register is to easily register the element without extra importing
`import '@aurodesignsystem/auro-button'` will still register this element to `<auro-button>`
`import { AuroButton } from '../src/auro-button.js'` wont register this element until `AuroButton.register` gets called
sun-mota added a commit that referenced this issue Oct 23, 2024
AuroButton.register is to easily register the element without extra importing
`import '@aurodesignsystem/auro-button'` will still register this element to `<auro-button>`
`import { AuroButton } from '../src/auro-button.js'` wont register this element until `AuroButton.register` gets called
blackfalcon pushed a commit that referenced this issue Oct 23, 2024
# [8.1.0](v8.0.1...v8.1.0) (2024-10-23)

### Bug Fixes

* added upgraded version file from build ([e36577b](e36577b))

### Features

* **api:** add register static method [#267](#267) ([b60a17e](b60a17e))

### Performance Improvements

* update dependency versions ([24e654b](24e654b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auro-button not-reviewed Issue has not been reviewed by Auro team member Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants