New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.2] Redesign carousel implementation to reflect documentation - bug fix #38930
base: 5.2-dev
Are you sure you want to change the base?
Conversation
- Fix slide vs. ride attribute in both doc block and code (https://getbootstrap.com/docs/5.2/components/carousel/#options) - Include missing params in doc block - Refactor parameter handling to fix unwanted behavior - Remove parameter cleanup to prevent fallback to default values
This pull request has been automatically rebased to 4.3-dev. |
I have tested this item ✅ successfully on 780d3d8 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38930. |
To compile the js: npm run build:js This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38930. |
Ah - I tested this against 5.0.0-beta2-dev This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38930. |
@Fedik @dgrammatiko I relabeled this a feature and moved it to 5.1 is this something we want and need? |
Looks fine, if it works :) |
Ditto |
This pull request has been automatically rebased to 5.2-dev. |
Summary of Changes
This pull request fixes a bug in the Bootstrap Caraousel implementation of Joomla! (PHP and ES/JS) that causes valid parameters to be removed from the JavaScript options object that is fed to the Carousel instance.
Testing Instructions
I do not know if the Patch Tester extension will do the JavaScript re-build / pre-processing for you, and hope you know best what to do in this regard.
Actual result BEFORE applying this Pull Request
All options set to false are filtered out, causing the carousel to fall back to its default values.
Expected result AFTER applying this Pull Request
Params that can have a false value are recognised and work as expected.
Link to documentations
Please select:
Documentation link for docs.joomla.org: https://docs.joomla.org/J4.x:Using_Bootstrap_Components_in_Joomla_4#Carousel (slide vs ride)
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Demo Module
mod_bs_carousel.zip