Closed zabaala closed 11 months ago
While testing with multiple select, I encountered the same issue, but with a slight difference. In the disabled multiple select, it's still possible to interact with available options.
This case was pushed too to Reproduction repository.
Duplicate of https://github.com/filamentphp/filament/issues/3068 (and many other same issues).
Sorry, reopening. Your comment confused me, @zabaala, as it's about a different component. The issue in your comment is what I referred to and is a limitation of Choices.js we can't fix.
Tracking the tags input issue here.
Fixed by #10052.
Package
filament/forms
Package Version
3.0.48
Laravel Version
10.20.0
Livewire Version
No response
PHP Version
8.1.21
Problem description
When trying to use the value of a particular field, such as a Toggle, to enable/disable a TagsInput component, when disabled, the state change doesn't affect the Delete button. This means that when it's disabled, it's still possible to delete existing tags in the field.
Considering the following code:
Digging deeper, I noticed that the value of $isDisabled for the following code snippet is always the initially defined one.
Expected behavior
When the element is disabled, it shouldn't be possible to remove items from the tag list.
Steps to reproduce
In this way, you will see elements in the disabled list that can be removed.
Reproduction repository
https://github.com/zabaala/filament-tags-input-bug
Relevant log output
No response