We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e16608 commit bf6bfc0Copy full SHA for bf6bfc0
lib/web/mage/edit-trigger.js
@@ -98,11 +98,17 @@
98
* @protected
99
*/
100
_onMouseMove: function(e) {
101
- var target = $(e.target);
+ var target = $(e.target),
102
+ inner = target.find(this.options.editSelector);
103
+
104
target = target.is(this.trigger) || target.is(this.options.editSelector) ?
105
target :
106
target.parents(this.options.editSelector).first();
107
108
+ if ($(e.target).is('button') && inner.length) {
109
+ target = inner;
110
+ }
111
112
if (target.size()) {
113
if (!target.is(this.trigger)) {
114
this._setPosition(target);
0 commit comments