microsoft / fluentui

Fluent UI web represents a collection of utilities, React components, and web components for building web applications.
https://react.fluentui.dev
Other
17.75k stars 2.65k forks source link

[Bug]: react-tag-picker-preview : pressing space on keyboard causing pickier closing #31259

Closed pradeept95 closed 2 weeks ago

pradeept95 commented 2 weeks ago

Library

React Components / v9 (@fluentui/react-components)

System Info

NA

Are you reporting Accessibility issue?

None

Reproduction

https://react.fluentui.dev/?path=/docs/preview-components-tagpicker--default#freeform

Bug Description

Actual Behavior

While searching, if you press space on keyboard, picker popover is closing. (It is happening on both normal or freeform picker)

Expected Behavior

Should be able to type space while searching

Logs

No response

Requested priority

High

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

bsunderhus commented 2 weeks ago

This is expected behavior, as discussed with @adamsamec and others. After further investigations we've opted by having this behaviour, both Space and Enter keydown on an option will closed the dropdown and select the option.

bsunderhus commented 1 week ago

This PR https://github.com/microsoft/fluentui/pull/31316 modifies this behavior a bit