Skip to content

Multiselect closes the whole modal #18293

@bogdaaamn

Description

@bogdaaamn

Bug report

Required System information

  • Node.js version: v18.17.1
  • NPM version: 9.63
  • Strapi version: 4.14.2
  • Operating system: Sonoma 14.0
  • Browser: Arc 1.10.1 (Chromium Engine Version 117.0.5938.132)
  • Is your project Javascript or Typescript: TypeScript

Describe the bug

When selecting options inside a multiselect that is inside a modal, clicking outside of the multi box closes the modal altogether. No matter if I click inside of the modal to fill in other fields, this will close the modal.

I also didn't figure out other ways to close the options list without closing the modal. Focusing back to the modal feels impossible.

Steps to reproduce the behavior

The place I found a modal is on the Users settings page, not sure where else are they.

  1. Go to Settings > Users
  2. Click on Invite new user
  3. Select options in User's roles
  4. Exit the options list

Expected behavior

A click outside of the options list, inside the modal should close just the list. Esc key press as well, I believe (?)

Screenshots

Screen grab where the modal closes on any click outside of the multiselect

Code snippets

n/a

Additional context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: highIf it breaks the basic use of the productsource: dependenciesSource is dependency problemstatus: confirmedConfirmed by a Strapi Team member or multiple community members

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions