We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48485f commit cd51d00Copy full SHA for cd51d00
Griddly/Scripts/editly.js
@@ -180,7 +180,7 @@
180
var handleBlur = function () {
181
// TODO: is there a more efficient way for this?
182
if (!$(document.activeElement).parents().is(template)) {
183
- if (editor.valid()) {
+ if (!validator || editor.valid()) {
184
saveActive();
185
186
hideEditor();
@@ -207,10 +207,8 @@
207
.width(template == editor ? active.width() : active.outerWidth())
208
.height(template == editor ? active.height() : active.outerHeight())
209
.off("blur change");
210
- if(template.tagName=="INPUT")
211
- template.on("blur change", function () {
212
- setTimeout(handleBlur, 1);
213
- });
+
+ editor.on("blur change", handleBlur);
214
215
var value = active.data("value");
216
if (value === undefined)
0 commit comments