[fix] hide popovers on blur frappe/erpnext#8721 (#3330)

This commit is contained in:
Prateeksha Singh 2017-05-18 12:19:52 +05:30 committed by Rushabh Mehta
parent 1f47653ca5
commit 743cfc625e

View file

@ -3833,6 +3833,13 @@
context.triggerEvent('focusout', event);
});
// hack
$editable.on('blur', function (event) {
setTimeout(function() {
$('.note-popover, .note-control-selection').hide();
}, 500);
});
if (!options.airMode) {
if (options.width) {
$editor.outerWidth(options.width);