6👍
✅
After the investigation, i got the solution to this. Just need to modify the items
{ name: 'test', disabled: true }
Just pass the disabled: true
, it will disable the options so that you cannot select and cannot be removed if that option is already selected.
👤Sam
Source:stackexchange.com