Can I use .activeElement to Disable a query?

I have a Query that references a textInput variable. Currently Retool will attempt to run the query as soon as there are any changes to that variable. This will hit a loading screen and unselect the field. Preventing the user from entering anything else until they re-click that textInput field. As a result, this field will only allow one or two character adjustments at a time. I would like to disable this query until the user has clicked off of that component. Would I be able to leverage the .activeElement to accomplish this effort? If so, how would it be best implemented?

Answered this one myself. The event handler for Blur can trigger this query (which is now set to only run when manually triggered)

1 Like

Thanks so much for joining the forum and sharing your question and solution here, @FacteusTim ! :tada:
It'll likely help someone else out to be able to search and find this :slight_smile: