Bootstrap 5 has changed the naming of the data attributes that are generally used by its components that use JavaScript as part of their functionality.
Previously, most components that relied on some JavaScript functionalities would have data attributes starting with data-.
In Bootstrap 5, data attributes for these components now start with data-bs to easily namespace Bootstrap attributes.
Bootstrap 5 has changed the naming of the data attributes that are generally used by its components that use JavaScript as part of their functionality.
Previously, most components that relied on some JavaScript functionalities would have data attributes starting with data-. In Bootstrap 5, data attributes for these components now start with data-bs to easily namespace Bootstrap attributes.