palantir/blueprint

Disable/Not show remove button on Tag on specific elements - Multiselect

Open

#4605 aperta il 24 mar 2021

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)TypeScript (2167 fork)batch import
P2Package: selectType: feature requesthelp wanted

Metriche repository

Star
 (20.263 star)
Metriche merge PR
 (Merge medio 43g 10h) (27 PR mergiate in 30 g)

Descrizione

Environment

  • Package version(s): 3.15.8
  • Browser and OS versions: Chrome, Windows 10

Question

How do I disable/not show the remove icon on a specific tag in MultiSelect? I tried the "itemDisabled" prop but that doesnt work. In the below example, Shawshank Redemption should not be removed at all under any circumstances. Please advice.

This is my code:

https://codesandbox.io/s/magical-nash-q7c0g?file=/src/App.tsx

Guida contributor