Skip to content

fix: Deletion allowed in FluentSearch that is ReadOnly or Disabled #3430

@ASchweers

Description

@ASchweers

🐛 Bug Report

In a <FluentSearch>-component, where the Disabled or ReadOnly parameter is set to true, the 'X'-button on the right hand side disappears. But the button is only hidden and still clickable, resulting in deletion of the value.

💻 Repro or Code Sample

See the Search-page of the demo and try the States-sample:

  • type something in one of the first three <FluentSearch>-components
  • now you can delete the value, if you click on the far right edge of the readonly or disabled <FluentSearch>-component.

🤔 Expected Behavior

Deletion shouldn't be possible in this scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions