Skip to content

Commit e57011c

Browse files
committed
Release Artifacts for v2.2.13
[skip ci]
1 parent 6387ff6 commit e57011c

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
## What is Mithril.js?
1717

18-
A modern client-side JavaScript framework for building Single Page Applications. It's small (<!-- size -->9.03 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
18+
A modern client-side JavaScript framework for building Single Page Applications. It's small (<!-- size -->9.01 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
1919

2020
Mithril.js is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.
2121

docs/recent-changes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11

2+
# Release v2.2.13
3+
4+
### Patch Changes
5+
6+
#### [Fix form checkValidity(), remove vnode.dom === .activeElement from setAttr() (Continued from #2257) (@kfule)](https://github.com/MithrilJS/mithril.js/pull/3002)
7+
8+
Remove vnode.dom === activeElement(vnode.dom) from setAttribute() to fix validityCheck(), to fix https://github.com/MithrilJS/mithril.js/issues/2256.
9+
#### [Bump glob from 11.0.0 to 11.0.1 in the normal group (@dependabot[bot])](https://github.com/MithrilJS/mithril.js/pull/3001)
10+
11+
Bumps the normal group with 1 update: [glob](https://github.com/isaacs/node-glob). Updates `glob` from 11.0.0 to 11.0.1. Commits. 148ef61 11.0.1.
12+
213
# Release v2.2.12
314

415
### Patch Changes

mithril.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -829,17 +829,17 @@ var _11 = function() {
829829
if (key === "value") {
830830
// Only do the coercion if we're actually going to check the value.
831831
/* eslint-disable no-implicit-coercion */
832-
var isFileInput = vnode3.tag === "input" && vnode3.attrs.type === "file"
833832
//setting input[value] to same value by typing on focused element moves cursor to end in Chrome
834833
//setting input[type0=file][value] to same value causes an error to be generated if it's non-empty
835-
if ((vnode3.tag === "input" || vnode3.tag === "textarea") && vnode3.dom.value === "" + value && (isFileInput || vnode3.dom === activeElement(vnode3.dom))) return
834+
//minlength/maxlength validation isn't performed on script-set values(#2256)
835+
if ((vnode3.tag === "input" || vnode3.tag === "textarea") && vnode3.dom.value === "" + value) return
836836
//setting select[value] to same value while having select open blinks select dropdown in Chrome
837837
if (vnode3.tag === "select" && old !== null && vnode3.dom.value === "" + value) return
838838
//setting option[value] to same value while having select open blinks select dropdown in Chrome
839839
if (vnode3.tag === "option" && old !== null && vnode3.dom.value === "" + value) return
840840
//setting input[type0=file][value] to different value is an error if it's non-empty
841841
// Not ideal, but it at least works around the most common source of uncaught exceptions for now.
842-
if (isFileInput && "" + value !== "") { console.error("`value` is read-only on file inputs!"); return }
842+
if (vnode3.tag === "input" && vnode3.attrs.type === "file" && "" + value !== "") { console.error("`value` is read-only on file inputs!"); return }
843843
/* eslint-enable no-implicit-coercion */
844844
}
845845
// If you assign an input type0 that is not supported by IE 11 with an assignment expression, an error will occur.

mithril.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mithril",
3-
"version": "2.2.12",
3+
"version": "2.2.13",
44
"description": "A framework for building brilliant applications",
55
"author": "Leo Horie",
66
"license": "MIT",

0 commit comments

Comments
 (0)