-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Bug]: On interactive query builder page, the "Endpoint" input loses focus with every input #2409
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
Comments
Hi @pwizla |
Thank you for reporting it, @ankit7201. I would love it if you could create a pull request, indeed 🙏 Please target the |
Hi @pwizla I have wrapped the LiveEditor in a div and using blur and click events on it to figure out if the editor needs to be disabled or not (Unfortunately, LiveEditor does not directly support these events so it needs to be wrapped inside another div for this to work) |
…Closes #2409 (#2423) * Added disabled option for LiveEditor so that it does not steal focus from endpoint textbox after every character input * Removed useRef usage for div wrapper for LiveEditor --------- Co-authored-by: Pierre Wizla <[email protected]>
Closing as I've just merged your PR. |
Link to the documentation page or resource
https://docs.strapi.io/dev-docs/api/rest/interactive-query-builder
Describe the bug
On interactive query builder page, the "Endpoint" input loses focuses with every input if the "Endpoint Query Parameters" was in focus previously.
To reproduce bug:
After Step 3, you will notice that after each key press, the input area is losing focus.
Additional context
Did a little bit of digging and it seems like this is due some issue with use editable hook used inside LiveEditor. (Link)
No response
Suggested improvements or fixes
I think we can add the disabled param to the LiveEditor when it is not in focus to prevent the focus going back to LiveEditor.
Related issue(s)/PR(s)
No response
The text was updated successfully, but these errors were encountered: