render-core 1.2.20 → 1.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,8 +12,8 @@ export function resolver_model(nodes, data) {
|
|
|
12
12
|
var tagName = nodes[i].tagName;
|
|
13
13
|
nodes[i].setAttribute("name", dataName);
|
|
14
14
|
if (tagName === "INPUT" || tagName === "SELECT" || tagName === "TEXTAREA") {
|
|
15
|
-
nodes[i].addEventListener("input", listerner.bind(data));
|
|
16
15
|
nodes[i].addEventListener("compositionstart", compositionstart);
|
|
16
|
+
nodes[i].addEventListener("input", listerner.bind(data));
|
|
17
17
|
nodes[i].addEventListener("compositionend", compositionend.bind(data));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -10,7 +10,7 @@ export function compositionstart(evt) {
|
|
|
10
10
|
* @param evt
|
|
11
11
|
*/
|
|
12
12
|
export function listerner(evt) {
|
|
13
|
-
if (!evt.target.
|
|
13
|
+
if (!evt.target.hasAttribute("flag")) {
|
|
14
14
|
//Get the event element
|
|
15
15
|
var element = evt.target;
|
|
16
16
|
//Get the name attribute
|
|
@@ -37,6 +37,7 @@ export function compositionend(evt) {
|
|
|
37
37
|
id: element.getAttribute("id"),
|
|
38
38
|
name: element.getAttribute("name")
|
|
39
39
|
});
|
|
40
|
+
evt.target.removeAttribute("flag");
|
|
40
41
|
//Update the value
|
|
41
42
|
this[dataName] = element.value;
|
|
42
43
|
}
|