# Smart action String Field loses focus while I am typing

**URL:** <https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912>\
**Category:** Help me!\
**Tags:** howtos\
**Created:** [July 15, 2021, 2:17pm UTC](https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912 "2021-07-15T14:17:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francois\_Vongue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/francois_vongue/32/2679_2.png) [@Francois\_Vongue](https://community.forestadmin.com/u/Francois_Vongue)\
**Post date:** [July 15, 2021, 2:17pm UTC](https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912/1 "2021-07-15T14:17:58Z")

</div>

## Expected behavior

I type in a smart action field my search request and as I finished typing I press enter or tab  
and go to the next field(s)

## Actual behavior

While I am typing, the field loses focus and I lose ability to type.  
So I have to constantly set focus to the field by clicking on it.

## Context

I use forest-express version 7.

I have a “change” hook that performs database search depending on  
what I have typed in the field.

---

<div class="post-metadata">

**Author:** ![anon16419211](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon16419211](https://community.forestadmin.com/u/anon16419211)\
**Post date:** [July 15, 2021, 3:34pm UTC](https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912/2 "2021-07-15T15:34:17Z")

</div>

Hello @Francois_Vongue,

Can you make us a little video to show us the described behavior by using a tool like loom for instance?

Kind regard, 🙂

---

<div class="post-metadata">

**Author:** ![Francois\_Vongue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/francois_vongue/32/2679_2.png) [@Francois\_Vongue](https://community.forestadmin.com/u/Francois_Vongue)\
**Post date:** [July 19, 2021, 5:47am UTC](https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912/3 "2021-07-19T05:47:27Z")

</div>

![2021-07-16 19-11-18](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/3/3efa817d7bb36f3f2b0d94f71061e23af36193fb.gif)

sure, here you go

---

<div class="post-metadata">

**Author:** ![anon39940173](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@anon39940173](https://community.forestadmin.com/u/anon39940173)\
**Post date:** [July 19, 2021, 1:21pm UTC](https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912/4 "2021-07-19T13:21:53Z")

</div>

Hello @Francois_Vongue

Thank you for the GIF… the issue is now crystal clear.  
I’m adding a ticket, and prioritizing it so that it get fixed.

Just for the sake of completeness, could you tell me if:

- you just created this smart action and/or add the change hook to it
- this smart action and the change hook were working properly, but started behaving like you reported a short time ago?

---

<div class="post-metadata">

**Author:** ![Francois\_Vongue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/francois_vongue/32/2679_2.png) [@Francois\_Vongue](https://community.forestadmin.com/u/Francois_Vongue)\
**Post date:** [July 20, 2021, 11:52am UTC](https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912/5 "2021-07-20T11:52:25Z")

</div>

The field (string field) has change hook attached to it.  
It always worked like this

---

<div class="post-metadata">

**Author:** ![anon39940173](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@anon39940173](https://community.forestadmin.com/u/anon39940173)\
**Post date:** [July 20, 2021, 11:53am UTC](https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912/6 "2021-07-20T11:53:18Z")

</div>

ok then it’s a regression, I’ll forward that to the developer dealing with the bug

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [July 27, 2021, 8:54am UTC](https://community.forestadmin.com/t/smart-action-string-field-loses-focus-while-i-am-typing/2912/7 "2021-07-27T08:54:56Z")

</div>

Hi @Francois_Vongue 👋 A fix has been released !  
Can you confirm this issue is fixed on your side ?  
Thank for your patience.
