You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,12 @@ An accessible polyfill for `<input type='time'/>` elements.
12
12
13
13
Demo available here: https://dan503.github.io/time-input-polyfill/
14
14
15
-
**Note:** If the recommended version in this documentation is out of sync with the npm version, this is because npm only allows readme edits to be committed through full releases. To prevent needless cache invalidation, I'll only update the recommended version number when there are actual changes to the polyfill code. The current recommended version is `1.0.7`. As long as you are using a version that is equal to or higher than that, you are using the latest version of the polyfill.
15
+
<details>
16
+
<summary>The recommended version is <code>1.0.9</code> or higher.</summary>
17
+
18
+
<p>If the recommended version in this documentation is out of sync with the npm version, this is because npm only allows readme edits to be committed through full releases. To prevent needless cache invalidation, I'll only update the recommended version number when there are actual changes to the polyfill code. The current recommended version is <code>1.0.9</code>. As long as you are using a version that is equal to or higher than that, you are using the latest version of the polyfill.</p>
19
+
20
+
</details>
16
21
17
22
## Pre-built components
18
23
@@ -54,7 +59,7 @@ You didn't load the actual polyfill onto the page, you loaded a much smaller aut
54
59
1. The initialiser checks if the browser supports `input[type="time"]` elements.
55
60
2. If it **does**, it skips the rest of the functionality.
56
61
3. If it does **not**, it will:
57
-
1. load `https://cdn.jsdelivr.net/npm/[email protected].7/dist/time-input-polyfill.min.js` (the actual polyfill).
62
+
1. load `https://cdn.jsdelivr.net/npm/[email protected].9/dist/time-input-polyfill.min.js` (the actual polyfill).
58
63
2. Collect all existing `input[type="time"]` elements on the page.
59
64
3. Loop through each `input[type="time"]` element and apply the polyfill to it.
0 commit comments