Hi,
I'm using a React QueryBuilder component for creating complex queries.
The search is executed when the user clicks the "Search" button. Now I want to also execute the search when the user presses the "Enter"-key after typing in an input in the QueryBuilder.
I added a form to my page containing the button and the querybuilder, but after pressing enter in the querybuilder input, the querybuilder removes the first rule, and the form is not submitted.
How can I disable the current behavior and submit instead?
Thanks!
Hi,
I created an example: https://codesandbox.io/s/cocky-shirley-6748m?file=/src/App.js
If you select field "Column1" , enter a value and press enter, the condition will be deleted.
Without the <form> element, this doesn't happen, but then I won't have the submit functionality.
Thanks!