Your element has the following utility class: data-[disabled]:pointer-events-none
. The meaning of this selector is that it takes effect when the data-disabled
attribute is present on the element.
And the element has the data-disabled
value by default. Although the value is false, the fact that data-disabled
exists is still satisfied.
If you want it to take effect when the data-disabled
value is true
, change your utility class to the following form: data-[disabled=true]:pointer-events-none
.