# DropdownButton UI component from \`@dhis2/ui\` library causes text fields within the same screen to not respond to keyboard inputs

**URL:** <https://community.dhis2.org/t/dropdownbutton-ui-component-from-dhis2-ui-library-causes-text-fields-within-the-same-screen-to-not-respond-to-keyboard-inputs/59551>\
**Category:** App Development\
**Created:** [14 June 2024 11:22 UTC](https://community.dhis2.org/t/dropdownbutton-ui-component-from-dhis2-ui-library-causes-text-fields-within-the-same-screen-to-not-respond-to-keyboard-inputs/59551 "2024-06-14T11:22:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnkogift](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/nnkogift/32/42239_2.png) [@nnkogift](https://community.dhis2.org/u/nnkogift)\
**Post date:** [14 June 2024 11:22 UTC](https://community.dhis2.org/t/dropdownbutton-ui-component-from-dhis2-ui-library-causes-text-fields-within-the-same-screen-to-not-respond-to-keyboard-inputs/59551/1 "2024-06-14T11:22:18Z")

</div>

Hello,

When using the DropdownButton component from the UI library alongside a text input (or any input that accepts keyboard values), I’m faced with an issue where the text input does not respond to keyboard inputs. I can, however, paste the text into the field.

I have [here](https://github.com/nnkogift/dropdown-button-issue) a minimal example to show what is happening

> **[GitHub - nnkogift/dropdown-button-issue: An example with the dropdown button...](https://github.com/nnkogift/dropdown-button-issue)**
>
> An example with the dropdown button causing text fields to not receive keyboard inputs - nnkogift/dropdown-button-issue

May I have assistance with this?

Thanks.

---

<div class="post-metadata">

**Author:** ![birkbjo](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/birkbjo/32/30993_2.png) [@birkbjo](https://community.dhis2.org/u/birkbjo)\
**Post date:** [18 June 2024 14:01 UTC](https://community.dhis2.org/t/dropdownbutton-ui-component-from-dhis2-ui-library-causes-text-fields-within-the-same-screen-to-not-respond-to-keyboard-inputs/59551/2 "2024-06-18T14:01:22Z")

</div>

Thanks a lot for the bug-report, and complete example! This is a bug related to ongoing accessibility improvements. I’ve made a fix: [fix(drop-down): dont swallow keyDown events unless its esc and open by Birkbjo · Pull Request #1529 · dhis2/ui · GitHub](https://github.com/dhis2/ui/pull/1529) and it will hopefully be released asap.

---

<div class="post-metadata">

**Author:** ![nnkogift](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/nnkogift/32/42239_2.png) [@nnkogift](https://community.dhis2.org/u/nnkogift)\
**Post date:** [18 June 2024 16:52 UTC](https://community.dhis2.org/t/dropdownbutton-ui-component-from-dhis2-ui-library-causes-text-fields-within-the-same-screen-to-not-respond-to-keyboard-inputs/59551/3 "2024-06-18T16:52:44Z")

</div>

Thanks @birkbjo & @tzemp!
