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

Fix implementation record filtering #4533

Merged
merged 1 commit into from Mar 5, 2024
Merged

Fix implementation record filtering #4533

merged 1 commit into from Mar 5, 2024

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Mar 5, 2024

What / why

Fix a small bug in the filtering functionality recently added to some pages in the implementation record.

The JS was using innerText but we include hidden elements to match the title of the sections on events by type. innerText is less reliable than textContent as it doesn't include hidden text, and during testing it produced some slightly odd results. This change fixes them.

Visual changes

None.

Trello card: https://trello.com/c/m6vL7lJy/186-add-filters-to-events-and-attributes-pages-on-implementation-record

- the JS was using `innerText` but we include hidden elements to match the title of the sections on events by type, `innerText` is less reliable than `textContent` as it doesn't include hidden text
@andysellick andysellick requested a review from AshGDS March 5, 2024 11:48
@andysellick
Copy link
Contributor Author

@AshGDS I guess I just found the value of having tests for our code... 🤦

Copy link
Contributor

@AshGDS AshGDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😅

@andysellick andysellick merged commit 5501aad into main Mar 5, 2024
7 checks passed
@andysellick andysellick deleted the fix-filtering branch March 5, 2024 12:08
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