FlowingCode / YearMonthCalendarAddon

Apache License 2.0
8 stars 0 forks source link

InlineDatePicker: after selecting a day, moving to next month updates month description but does not update the calendar #81

Open dicorato opened 2 weeks ago

dicorato commented 2 weeks ago

Describe the bug

Using InlineDatePicker, selecting one of the days displayed and then moving to next month is not updating the calendar showing the days of the next month, just updates the month description. You have to click again to show the correct month days.

Expected behavior

No response

Minimal reproducible example

import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.notification.Notification;
import java.util.Objects;

public class InlineDatePickerDemo extends Div {

  public InlineDatePickerDemo() {

    InlineDatePicker field = new InlineDatePicker();

    field.addValueChangeListener(ev->{
      Notification.show(Objects.toString(ev.getValue()));
    });
    add(field);
  }

}

Add-on Version

4.2.2-SNAPSHOT

Vaadin Version

24

Additional information

You can experience the bug on the official demo site: https://addonsv24.flowingcode.com/year-month-calendar/inline-date-picker

javier-godoy commented 2 weeks ago

Hello. Did I get the reproduction steps right? The feature seems to work in the demo site. (In case it matters, I'm using Chrome 128). 81

dicorato commented 2 weeks ago

Hello Javier, yes, the steps are right. I can experience the problem on the demo site using both Firefox 129 and Chrome 128. I just found another strange behaviour linked to the same problem. What are you using to create those GIFs? So I show you. Thanks

javier-godoy commented 2 weeks ago

Hello. I create the GIFs with LiceCap. Windows / macOS installers are available from the website linked from their repository.