mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
24 stars 25 forks source link

Internal issue 2840 - IcSelect - User is able to clear a selection when component is disabled #2322

Open ticket-sync[bot] opened 3 weeks ago

ticket-sync[bot] commented 3 weeks ago

In the IcSelect component the Clear button still shows if a selection has been made but the component is disabled. This means that the user can delete the value, but then not be able to re-select it.

Steps to reproduce:

set the value of the IcSelect component

set the disabled and searchable props to true

click the clear selection button

see that the selection has disappeared, but due to the component being disabled, you cannot re-select it.

Expected behaviour:

If the component is disabled, all interactivity should be disabled.

MI6-255 commented 3 weeks ago

Consider the issue with fixing Select, then needing to fix multi select too

MI6-286 commented 1 week ago

A Cypress test that tests this functionality already exists within IcSelectSearchable.cy.tsx. It currently fails due to this issue, and so will need the 'skip' removing once the issue has been resolved.