This PR addresses two issues related to the tabIndex attribute in the slide component:
Fix typo in tabIndex property: Corrects the casing from tabindex to tabIndex to comply with React's DOM property conventions, eliminating the associated warning in the console.
console.js:288 Warning: Invalid DOM property tabindex. Did you mean tabIndex?
Fix invalid tabIndex value: Ensures that a valid number is passed to the tabIndex attribute by using conditional rendering. This resolves the warning about receiving a false value for a non-boolean attribute.
react-dom.development.js:74 Warning: Received false for a non-boolean attribute tabIndex.
This PR addresses two issues related to the
tabIndex
attribute in the slide component:Fix typo in
tabIndex
property: Corrects the casing fromtabindex
totabIndex
to comply with React's DOM property conventions, eliminating the associated warning in the console.console.js:288 Warning: Invalid DOM property tabindex. Did you mean tabIndex?
Fix invalid
tabIndex
value: Ensures that a valid number is passed to thetabIndex
attribute by using conditional rendering. This resolves the warning about receiving afalse
value for a non-boolean attribute.react-dom.development.js:74 Warning: Received false for a non-boolean attribute tabIndex.