You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected the Swiper to be disabled when setting enabled to false.
Actual Behavior
Has no effect on the Swiper and throws the following error:
Warning: Received `false` for a non-boolean attribute `enabled`. If you want to write it to the DOM, pass a string instead: enabled="false" or enabled={value.toString()}. If you used to conditionally omit it with enabled={condition && value}, pass enabled={condition ? value : undefined} instead.
The text was updated successfully, but these errors were encountered:
What You Did
Added the enabled parameter to the Swiper React component.
Here is the basic react example with the enabled parameter set to false, console shows error and Swiper not disabled.
https://codesandbox.io/s/swiper-react-default-forked-ntim9?file=/src/App.js
Expected Behavior
I expected the Swiper to be disabled when setting enabled to false.
Actual Behavior
Has no effect on the Swiper and throws the following error:
Warning: Received `false` for a non-boolean attribute `enabled`. If you want to write it to the DOM, pass a string instead: enabled="false" or enabled={value.toString()}. If you used to conditionally omit it with enabled={condition && value}, pass enabled={condition ? value : undefined} instead.
The text was updated successfully, but these errors were encountered: