Commit 05113df3 authored by Sven Franck's avatar Sven Franck

don't trigger action on keyup when submit button is focussed

parent a019018c
...@@ -4871,6 +4871,7 @@ ...@@ -4871,6 +4871,7 @@
* @method action * @method action
* @param {object} e Event that triggered the action * @param {object} e Event that triggered the action
*/ */
// TODO: clean this up
app.action = function (e) { app.action = function (e) {
var type, tag, val, action, handler; var type, tag, val, action, handler;
...@@ -4880,7 +4881,8 @@ ...@@ -4880,7 +4881,8 @@
if (type === "click" && e.target.getAttribute("data-rel") === null) { if (type === "click" && e.target.getAttribute("data-rel") === null) {
e.preventDefault(); e.preventDefault();
if (type === "click" && (tag === "SELECT" || if (type === "click" && (tag === "SELECT" ||
(tag === "INPUT" && e.target.type !== "submit"))) { (tag === "INPUT" && e.target.type !== "submit")) ||
(type === "keyup" && e.target.type === "submit")) {
return; return;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment