summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-05-07 14:21:24 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2020-05-09 09:54:08 +0200
commitc7c690c4e805aaf5ed40b0e7f30929d26ed59327 (patch)
tree9390453878e04732814f528e39624b41b1f7c345
parentMSForms: do some styling of drop-down form field.. (diff)
downloadonline-c7c690c4e805aaf5ed40b0e7f30929d26ed59327.tar.gz
online-c7c690c4e805aaf5ed40b0e7f30929d26ed59327.zip
MSForms: stop propagation of mouse events for the drop down button.
Change-Id: Id63056f1aa39cadfc62021c5220d301f7ea26af8
-rw-r--r--loleaflet/src/layer/FormFieldButtonLayer.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/loleaflet/src/layer/FormFieldButtonLayer.js b/loleaflet/src/layer/FormFieldButtonLayer.js
index 33c6b561c4..0acaabce55 100644
--- a/loleaflet/src/layer/FormFieldButtonLayer.js
+++ b/loleaflet/src/layer/FormFieldButtonLayer.js
@@ -90,6 +90,10 @@ L.FormFieldButton = L.Layer.extend({
image.src = 'images/unfold.svg';
button.addEventListener('click', this._onClickDropDown);
+
+ // Stop propagation to the main document
+ button.addEventListener('mouseup', function(event) {event.stopPropagation();});
+ button.addEventListener('mousedown', function(event) {event.stopPropagation();});
},
_buildDropDownList: function(framePos, frameWidth, frameHeight) {