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

Fixed searchbar suggest handler undefined input ref #4125

Conversation

asteriscos
Copy link
Member

@asteriscos asteriscos commented Apr 29, 2022

This is a workaround for the issue #4105

The ruleset view and the rule files view share the same input, so the reference of the input does not trigger the useEffect and is lost. To fix this I added a possible pre-existing reference to the constructor of the suggestion component.

This base issue also causes another problem, because changing the view doesn't reset the input and keeps the previous search. When a previous field has a query it fails on the new view.

E.g.
Peek 2022-04-29 20-26

@matiasmoreno876 matiasmoreno876 linked an issue Apr 29, 2022 that may be closed by this pull request
Signed-off-by: Federico Rodriguez <[email protected]>
Copy link
Contributor

@matiasmoreno876 matiasmoreno876 left a comment

Choose a reason for hiding this comment

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

CR OK ✅
TEST OK ✅

@matiasmoreno876 matiasmoreno876 merged commit a66336a into 4.3-7.10 Apr 29, 2022
@matiasmoreno876 matiasmoreno876 deleted the fix/searchbar-suggest-handler-undefined-input-ref-4105 branch April 29, 2022 20:40
@github-actions
Copy link
Contributor

Jest Test Coverage % values
Statements 4.05% ( 1478 / 36534 )
Branches 1.62% ( 461 / 28488 )
Functions 2.99% ( 267 / 8930 )
Lines 4.09% ( 1430 / 34930 )

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.

TypeError in Management/Rules
3 participants