Releases: dan-lee/timescape
[email protected]
[email protected]
Minor Changes
-
#42
854718e
Thanks @dan-lee! -⚠️ Breaking change:This introduces the
disallowPartial
option while simultaneously allowing partial input by default:Each segment of the date input can now be set independently, allowing certain parts to remain empty. The
options.date
property will only return aDate
instance when all segments are set. Otherwise, it will returnundefined
.This improvement brings the component closer to standard web behavior, allowing partial date inputs instead of requiring fully completed dates as before.
Note: This is a breaking change, if you want to keep the old behavior, you can to set
disallowPartial
totrue
.
[email protected]
Patch Changes
-
#44
8e07ead
Thanks @dan-lee! - Added the ability to prevent the default keydown event handling. If you want to handle keydown events yourself, you can now prevent the default behavior by usingonKeyDownCapture
(or the equivalent in your framework) and callingpreventDefault()
in your handler.<input onKeyDownCapture={(e) => { if (e.key === 'Enter') { e.preventDefault() } }} />
[email protected]
[email protected]
[email protected]
Patch Changes
- #31
7a32dad
Thanks @zanuarmirza! - adding cjs output format
[email protected]
[email protected]
Minor Changes
- #23
f616faa
Thanks @SeanCassiere! - Allow native key events to be passed through in thekeydown
[email protected]
Patch Changes
- 482d067: Allow switching AM/PM on mobile #20 (thanks @LiniovasDovydas!)
[email protected]
Patch Changes
- 7aadd9b: Fix test