-
Notifications
You must be signed in to change notification settings - Fork 843
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
Issues with Kibana 8.9.0 + EuiSearchBar ("@elastic/eui": "82.1.0") #7023
Comments
@s-nel do you mind chiming in on this and whether it's intentional based on your changes in #6717? Do we need to escape
|
Can you be more specific? EUI is producing valid
We should escape all special characters used in |
Ahh, apologies for muddying the waters with that. Let's just focus on @brenoandrade-wdrv's issue in that case. @brenoandrade-wdrv, we need more information from you. Either a CodeSandbox that demonstrates the error, more complete error logs, or more specific repro steps (the current steps in your PR description are too vague to reproduce). FWIW, https://eui.elastic.co/#/forms/search-bar#search-bar-filters is currently using ![]() |
Dear folks, I'll use this Sandbox and manage a minified example from Kibana 8.9.0 over the Search Bar component in order to reproduce the issue I've been experiencing. - Will let you know soon, probably by the next week or so. Thanks for putting your thoughts on this matter. |
Hey @brenoandrade-wdrv - it's been about a week and a half, so we're going to go ahead and close this as can't repro for now. If you're able to repro this later please feel free to leave a comment and we can re-open it, or open an entirely new issue. |
Describe the bug
Kibana 8.9.0 has recently introduced a new bug related to the EuiSearchBar component in the "@elastic/eui" library with version 82.1.0. The issue originates from a change made in the pull request found at #6717. This change inadvertently affected the functionality of the EuiSearchBar.Query.toESQuery() method.
To be more specific, the problem lies with the "+" character, which was causing unintended issues when using the EuiSearchBar.Query.toESQuery() method. As a result, external plugins were unable to approach the queryString as expected.
As a temporary solution, I have implemented a quick fix by removing the "+" character from the query terms. This workaround has proven to be effective, and the EuiSearchBar component is now functioning properly.
Environment and versions
To Reproduce
Steps to reproduce the behavior:
1 - Import the https://eui.elastic.co/#/forms/search-bar control in your external Kibana plugin
2 - Try to use the EuiSearchBar.Query.toESQuery() method in order to provide a quick search.
3 - The search will not run properly
Expected behavior
SearchBar component running queryString properly in Kibana 8.9.0
Minimum reproducible sandbox
Screenshots
Additional context
elastic/kibana#162907
The text was updated successfully, but these errors were encountered: