fooloomanzoo / datetime-picker

A minimal picker for date and time for Polymer, that can use the native input
MIT License
78 stars 18 forks source link

Disable double click feature #71

Open komitoff opened 1 year ago

komitoff commented 1 year ago

Hello there, I am using the calendar-element and it is really good. There is just one small thing that I can't really handle and it is the double click feature. I read almost everything written as documentation regarding this component, but I was not able to find a way to disable this double click feature.

Here is my simple code

    static get template() {
        return html`
            <custom-style>
              <style is="custom-style">
                calendar-element {
                    --input-picker-color: black;
                    --input-picker-background: white;
                }
              </style>
            </custom-style>
            <calendar-element
                locale="[[locale]]"
                date="{{date}}"
                on-click="dateSelected">
                </calendar-element>
            `;
    }

Would be really nice if this is already existing, but I didn't find the way to disable it. Thanks in advance !