easepick icon indicating copy to clipboard operation
easepick copied to clipboard

TimePlugin: when a time is selected, apply buttons stays disabled

Open nickbo90 opened this issue 3 years ago • 1 comments

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

nickbo90 avatar Jun 16 '22 14:06 nickbo90

I'm facing this issue as well.

chanmathew avatar Aug 26 '23 20:08 chanmathew