mskocik / svelty-picker

Simple date & time picker in svelte
https://mskocik.github.io/svelty-picker/
202 stars 46 forks source link

Year / Month View Selection #165

Closed RDKeith closed 8 months ago

RDKeith commented 8 months ago

Looking to prevent the month view from showing when a month is selected from the year view (startView={1}).

We want to disable the transition to the month view, all we are looking to capture is the selected month / year.

See below for current behavior. Thanks!

CleanShot 2024-03-12 at 09 18 30

mskocik commented 8 months ago

I understand your usecase, but it's not possible right now... As I am thinking about it, this can't be added due the logic related toview switching and date selecting. It would require specific handling which isn't worth it.

Probably the easiest way for you will be to extract all functionality you need from svelty-picker to your custom picker.

RDKeith commented 8 months ago

Appreciate the feedback - will look into other options as suggested.