Semantic-ui-react: Dropdown: `allowAdditions` with Space key does not work

Created on 23 Jul 2020  路  6Comments  路  Source: Semantic-Org/Semantic-UI-React

Hi,

Why does not the dropdown component allow for space character from version 0.88.0?
It works nice in version 0.87.3.
error

bug

All 6 comments

馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

Looks like a valid bug. Also linking #3146 as it can be the same issue.

@tomasz-grzesik can please you try it on CodeSandbox (https://codesandbox.io/s/jwlr7?module=/example.js)? I can't repro it, only in our docs...

Unfortunately I can't reproduce it in sandbox.
I have two the same dropdowns - one in the modal, and one in the page. The problem is only with dropdown in the modal, but on the sandbox it works correctly. Maby some of my other scripts make this problem happen.

@tomasz-grzesik so it's not a regression actually. I don't know from what version we have this behavior however it's related to key handling. This is possible when you have two or more Dropdowns opened at the same time.

The attached GIFs shows to issues:

dropdown-events

  • Spacebar does not work
  • ArrowUp/ArrowDown affects both Dropdowns

I updated https://codesandbox.io/s/zen-sun-q1s0f?file=/example.js to simplify testing and highlight the issue. #4004 will fix it.

Maby this fix will solve my problem. I will wait for new version and inform you about results.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laukaichung picture laukaichung  路  3Comments

mattmacpherson picture mattmacpherson  路  3Comments

AlvMF1 picture AlvMF1  路  3Comments

keeslinp picture keeslinp  路  3Comments

hankthewhale picture hankthewhale  路  3Comments