easepick
easepick copied to clipboard
TimePlugin: when a time is selected, apply buttons stays disabled
Describe the bug When a time is changed, the apply button stays disabled.
To Reproduce
<html>
<head>
<meta charset="utf-8" />
<title>easepick</title>
<script src="https://cdn.jsdelivr.net/npm/@easepick/[email protected]/dist/index.umd.min.js"></script>
</head>
<body>
<input id="datepicker" />
<script>
const picker = new easepick.create({
element: document.getElementById('datepicker'),
css: [
'https://cdn.jsdelivr.net/npm/@easepick/[email protected]/dist/index.css',
],
autoApply: false,
plugins: ['TimePlugin'],
TimePlugin: {
format: 'HH:mm',
},
});
picker.setDate('2022-01-01');
picker.setTime('15:00');
</script>
</body>
</html>
Change time in a browser to 16:00. You will see that the apply button is still disabled.
Expected behavior Not a disabled apply button after a valid change
I'm facing this issue as well.