Hi there, @umiumansa… have you tried using the debugger to run the search workflow in step-by-step mode to see if it can give you some insight into what is happening?
I think it’s a side effect of the other ticket that got resovled earlier where the input value is part of eraser button workflow?
Maybe Bubble sees the input as tied to the button and assumes that hitting enter means the button should be triggered?
You’re saying that’s the workflow that runs when the search input is in focus and the enter key is pressed? If so, then you must have a workflow set up that includes all of those steps. If you are saying you don’t and the app is randomly running those first two steps (which would be something I certainly haven’t seen before), then there is definitely a bug.
If you can share a read-only link to your editor, maybe someone can spot something you are missing.
There is no way to have a workflow trigger another “something is clicked” workflow is there?
Correction: only one workflow gets triggered (the eraser workflow).
To test the theory that the use of the input by the button triggers the button with Enter, I disabled the step 2 of the workflow of the eraser which uses the input’s value:
When I do that, the button doesn’t get triggered when hitting enter. So the theory stands.
Step 2 sets a state in the input element. I need that step in order to have the reset relevant inputs work.
So now there’s a 2-way relationship between button and input, whereas I expected only a one way relationship, i.e. the erase button should clear the value in the input field.