diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-06-19 22:39:29 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-06-19 22:39:29 +0300 |
commit | 17c4c96c2967e640a6f6819b9fa9699e592039ad (patch) | |
tree | 6e42edb57e8b8928b6f8069aaf523337f4e88dec | |
parent | 56e5585730750063771406ef512b05348fb22c82 (diff) | |
download | wekan-17c4c96c2967e640a6f6819b9fa9699e592039ad.tar.gz wekan-17c4c96c2967e640a6f6819b9fa9699e592039ad.tar.bz2 wekan-17c4c96c2967e640a6f6819b9fa9699e592039ad.zip |
- [Fix Wekan unable to Select Text from Description edit box](https://github.com/wekan/wekan/issues/2451)
by removing feature of card description submit on click outside. This is because when selecting text
and dragging up did trigger submit of description, so description was closed and selecting text failed.
This did affect all Chromium-based browsers: Chrome, Chromium, Chromium Edge.
Thanks to xet7 !
Closes #2451
-rw-r--r-- | client/lib/inlinedform.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/client/lib/inlinedform.js b/client/lib/inlinedform.js index e5e4d4ed..d33786ae 100644 --- a/client/lib/inlinedform.js +++ b/client/lib/inlinedform.js @@ -80,11 +80,11 @@ EscapeActions.register('inlinedForm', ); // submit on click outside -document.addEventListener('click', function(evt) { - const openedForm = currentlyOpenedForm.get(); - const isClickOutside = $(evt.target).closest('.js-inlined-form').length === 0; - if (openedForm && isClickOutside) { - $('.js-inlined-form button[type=submit]').click(); - openedForm.close(); - } -}, true); +//document.addEventListener('click', function(evt) { +// const openedForm = currentlyOpenedForm.get(); +// const isClickOutside = $(evt.target).closest('.js-inlined-form').length === 0; +// if (openedForm && isClickOutside) { +// $('.js-inlined-form button[type=submit]').click(); +// openedForm.close(); +// } +//}, true); |