Skip to content

Selection state not visually updated for items inside overflow #27

@paodb

Description

@paodb

Describe the bug

When using the DayOfWeekSelector with overflow enabled, selecting a day from the overflow (context menu) does not immediately reflect the selected state visually.

The value is correctly updated internally (as confirmed by the value shown below), but the button inside the overflow menu does not show the selected (highlighted) state until the menu is closed and opened again. The correct styling only appears after closing and reopening the menu. See attached video:

Image

Expected behavior

When selecting a day inside the overflow menu, the button should immediately reflect the selected state (e.g., highlighted/active styling).

Minimal reproducible example

  1. Open the DayOfWeekSelector demo at https://addonsv25-staging.flowingcode.com/day-of-week-selector/demo and go to the overflow example
  2. Click on the overflow button to open the context menu
  3. Select a day that is inside the overflow (e.g., Thursday)
  4. Observe the selection state in the menu
  5. Close and reopen the overflow menu

Add-on Version

1.3.1-SNAPSHOT

Vaadin Version

25.1.3 & 24.10.1

Additional information

The issue seems limited to items rendered inside the overflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Inbox (needs triage)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions