Skip to content

Typing into the autocomplete and clicking a radio button without selecting an option causes issues with the radio button #464

Open
@alexnewmannn

Description

@alexnewmannn

Hey
We recently upgraded to 2.0.3 from 2.0.0 and encountered an issue (found with our automation tests, and replicated manually).

  1. Type into the autocomplete, something that will provide a match. This can be seen in the image below
    image
  2. Don't select an option
  3. Click a radio button within the same page whilst the menu is still open

This will result in the option being selected in the autocomplete (as expected), however, the radio button will receive a focus state and won't select the option. This is highlighted in the image below
image

We've narrowed this down to 2.0.2, and after looking at a diff between that and 2.0.1 we think it may be related to the recent changes with the onBlur function. This seems kind of similar to #414 but not exactly. Appreciate users should be encouraged to select an option before continuing, however, our set of users are internal staff who work on the system all day, and using shortcuts to complete forms faster is common, meaning if staff have figured out this shortcut, that it will select the option if they just leave it selected, this will create a bad experience for them if we enable overlay, or force them to select an option before continuing.

On version 2.0.1, when trying the above steps the result will be that the option is selected and the radio button is also selected.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions