Skip to content

fix: wrap filter-pill event listener in DOMContentLoaded - #1130

Open
aditya226-sharma wants to merge 1 commit into
sayeeg-11:mainfrom
aditya226-sharma:fix/console-error-and-duplicate-id
Open

fix: wrap filter-pill event listener in DOMContentLoaded#1130
aditya226-sharma wants to merge 1 commit into
sayeeg-11:mainfrom
aditya226-sharma:fix/console-error-and-duplicate-id

Conversation

@aditya226-sharma

Copy link
Copy Markdown

The filter-pill click handler code ran immediately at script load time, before the DOM was ready, causing a console error when querySelectorAll found no matching elements. Wrapped in DOMContentLoaded to ensure elements exist before attaching listeners.

Fixes #1121

The filter-pill click handler code ran immediately at script load time,
before the DOM was ready, causing a console error when querySelectorAll
found no matching elements. Wrapped in DOMContentLoaded to ensure
elements exist before attaching listeners.

Fixes sayeeg-11#1121
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.

[Bug]: Fix Console Error in Resources Page

1 participant