vitalets / x-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
http://vitalets.github.io/x-editable
MIT License
6.51k stars 1.73k forks source link

editable('show') + onblur: 'submit' = Problem #1129

Open futureweb opened 5 years ago

futureweb commented 5 years ago

Got editable on some Elements with onblur: 'submit', Option. Also got some Buttons to programatically open some of those Editables $('#bla').editable('show');

The Problem - as soon as I programatically call the Editable - it will SUBMIT the Form as it recognized it's not in focus but blur ... and on blur it should submit ...

Made a short JSFiddle with the Bug: URL: http://jsfiddle.net/ar5juk7n/5/ Reproduce: 1) click on "Editable Text" = working 2) click on "Programatically trigger Editable" = not working

Any Ideas on that? ;-)

thx, bye from Austria Andreas Schnederle-Wagner