Skip to content

[Picker Modals] Disable "OK" button if none of the options are selected #2

@andreeaharmonic

Description

@andreeaharmonic

The Picker Modals allow the OK button to be clickable even when no option is selected, both for single-select and multi-select and effectively requires exactly one selection/at least one option. For single-select pickers, clicking OK in this state performs no action, keeps the picker open, and provides no error or warning, resulting in misleading behavior. For multi-select, clicking OK in this state closes the modal allowing the action. Upon validating/saving the channel, error messages are displayed because we do not allow this behaviour.

Expected:
The OK button is disabled if no chages have been performed on the picker or if none of the options are selected. In this state, closing the Modal will be done only by clicking Cancel/Exit ( X ) buttons.

Steps:

  1. Open any single-select/multi-select picker.
  2. Ensure no option is selected.
  3. Click the OK button.

Evidence:

https://github.com/user-attachments/assets/d22861fc-d69c-4bde-b3a1-1efeafced537
Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions