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

Auro-alert: Update component registration logic #70

Open
sun-mota opened this issue Oct 22, 2024 · 0 comments · May be fixed by #73
Open

Auro-alert: Update component registration logic #70

sun-mota opened this issue Oct 22, 2024 · 0 comments · May be fixed by #73
Assignees
Labels
auro-alert not-reviewed Issue has not been reviewed by Auro team member Type: Bug Bug or Bug fixes

Comments

@sun-mota
Copy link

Please verify the version of auro-alert 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

None

Expected behavior

No response

What browsers are you seeing the problem on?

No response

Additional context

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-alert labels Oct 22, 2024
@sun-mota sun-mota self-assigned this Oct 22, 2024
sun-mota added a commit that referenced this issue Oct 24, 2024
- Update dependency versions
- `AuroAlert.register` is to easily register the element without extra importing
- `import "@aurodesignsystem/auro-alert"` will still register this element to <auro-alert>
- `import { AuroAlert } from '../src/auro-alert.js` wont register this element until `AuroAlert.register` gets called
@sun-mota sun-mota linked a pull request Oct 24, 2024 that will close this issue
6 tasks
@sun-mota sun-mota linked a pull request Oct 24, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auro-alert 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