[HELP] How to force hide keyboard / unset focus of an input

Hi everyone,

I’d need some help to find a solution to hide the keyboard after a focus has been set to an input.

You can check out my video below :

  1. I’m opening a sheet a setting focus to the input at the top
  2. The user types some content
  3. He clicks an item in the autocomplete suggestions list
  4. I’m then opening another sheet

The input is not needed anymore, but the focus is still set to it, and the keyboard stays visible.

How could I hide it ?

RPReplay_Final1745348500-ezgif.com-video-to-gif-converter

Hmm :thinking: Have you tried using ‘reset relevant input’?

If you aren’t actually using the input in an action, then you can create a state on the page and then save the input’s value there, then reset the relevant input. This forces the input to clear out.

Do you think that would help?

i’ve had this same annoying problem with multiline inputs lmk if you figure it out :sweat_smile:

with regular inputs if you hit return on the keyboard it hides

@nick.carroll any ideas? i thought this was one of the bugs raised very early on and was fixed?

Same here, very annoying :melting_face:

@J805 Yes I’ve tried different ways to include the input in my workflow, and then using the action “reset relevant inputs” without any success.

I’ve submitted a bug report, I will follow up here if a solution arises

1 Like

Solution :white_check_mark: :

You can force the keyboard to hide by conditionally setting the relevant input to “this input is disabled”. @johnny

So for example in my case, I don’t need the input anymore when the sheet gets closed, so I’ve just set the input condition to “When Sheet “X” isn’t visible → This input is disabled”

I don’t think this approach is ideal though. I think Bubble should know when an input gets hidden, and automatically close the keyboard

2 Likes

yeah… not ideal

yep we hear you, definitely not ideal. Adding in a dismiss keyboard action, whether via workflow or on the keyboard itself, is on our radar, but lower prio than a lot of the bug fixing & build stability work the team is currently working on

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.