mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
- [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
This commit is contained in:
parent
56e5585730
commit
17c4c96c29
1 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue