-
Notifications
You must be signed in to change notification settings - Fork 7
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
Changed the search component in theme-gmd to use the event's currentTarget propery over the target to obtain the updated query. #799
Changed the search component in theme-gmd to use the event's currentTarget propery over the target to obtain the updated query. #799
Conversation
In the current state the portal prop SInce you seem to need that I would suggest modifying the file
|
Im currently trying |
But this is not the problem described in this PR. The problem is the wrong target. Let's discuss the other issue when this is handled (separate issue, already reported in the Slack channel). |
As already written in the Slack channel |
It would not fit our requirements to make the query optional. My suggested code change does fit that requirement and leaves room to modify the query as well.
Of course you can deal with this in a different scope. |
Description
This PR resolves the wrong target in #793. Alternatively we could also catch
e
ourself, set the needed value to the one ofcurrentTarget
and call the original onClick method withe
.Type of change
Please add an "x" into the option that is relevant:
How to test it
Create any html elements in the button element for the search suggestion item and click on the element. It should correctly get the value of the element with the event listener, not one of its children.