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

Format code and fix advanced search filter input eats key presses #8578

Merged

Conversation

pmario
Copy link
Member

@pmario pmario commented Aug 31, 2024

This PR relys on PR: fix typing problem in advanced search filter tab #8577 -- So it should be merged after #8577


This PR is related to: [BUG] Search input in "Filter" tab in advanced search drops key presses as of 5.3.5 on Firefox #8551

The text input will register fast typing again. No matter how many results are shown. So [all[]] does not cause any problems with typing anymore.

But this PR does not explain why the problem happened in the first place.
I do have an idea, but no time to dig into the rabbit hole as @hoelzro did in #8551 -- It seems to be a refresh problem where a nested HTML element is involved.


This PR does:

  • Improve human readability of the code
  • It does move emptyMessage into the new <$list-empty> widget to improve code readability
  • It does remove the DIV inside the reveal-widget
  • It does define tag="div" class="tc-search-results" in the reveal-widget so the DIV could be removed
    • This change causes the typing problem to be fixed

Copy link

stackblitz bot commented Aug 31, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

Confirmed: pmario has already signed the Contributor License Agreement (see contributing.md)

@pmario pmario changed the title fix advanced search filter input eats key presses Format code and fix advanced search filter input eats key presses Aug 31, 2024
@Jermolene
Copy link
Member

Thanks @pmario there are conflicts to resolve

@pmario
Copy link
Member Author

pmario commented Sep 1, 2024

@Jermolene -- conflicts fixed and functionality tested

@Jermolene
Copy link
Member

Thanks @pmario

@Jermolene Jermolene merged commit 842605d into TiddlyWiki:master Sep 1, 2024
3 checks passed
@pmario pmario deleted the advanced-search-filter-eats-key-presses branch September 10, 2024 16:37
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.

2 participants