Skip to content

Bug #1074: Fix Carousel indicators: Update aria-current attribute and ensure StateHasChanged is called for autoplay functionality - #1327

Merged
gvreddy04 merged 2 commits into
mainfrom
bugfix/1074-carousel-indicators-autoplay
Oct 26, 2026
Merged

gvreddy04 merged 2 commits into
mainfrom
bugfix/1074-carousel-indicators-autoplay

Conversation

@gvreddy04

@gvreddy04 gvreddy04 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

This pull request updates the Carousel component to improve accessibility and event handling, particularly around the carousel indicators and slide transitions. The main focus is on ensuring proper ARIA attributes and synchronizing UI state with Bootstrap-driven interactions.

Accessibility and indicator improvements:

  • The aria-current attribute for carousel indicators is now set to "true" only for the active item, improving accessibility for screen readers.
  • The indicator buttons now use the data-bs-slide-to attribute instead of handling click events with Blazor, aligning with Bootstrap's native behavior.

Event handling and UI synchronization:

  • In the bslide method, StateHasChanged() is called to ensure the Blazor UI updates in response to Bootstrap-driven events such as autoplay, keyboard navigation, swipe, and indicator clicks, which do not trigger Blazor events by default.

… ensure StateHasChanged is called for autoplay functionality
@gvreddy04 gvreddy04 added this to the 4.1.0 milestone Oct 26, 2026
@gvreddy04 gvreddy04 self-assigned this Oct 26, 2026
@gvreddy04 gvreddy04 added bug Something isn't working area-carousel labels Oct 26, 2026
@gvreddy04 gvreddy04 changed the title Bug #1074: Fix Carousel indicators: Update aria-current attribute and… Bug #1074: Fix Carousel indicators: Update aria-current attribute and ensure StateHasChanged is called for autoplay functionality Oct 26, 2026
@gvreddy04
gvreddy04 merged commit b6c520e into main Oct 26, 2026
1 of 3 checks passed
@gvreddy04
gvreddy04 deleted the bugfix/1074-carousel-indicators-autoplay branch October 26, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-carousel bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Carousel with indicators and autoplay enabled does not work after the first slide.

1 participant