Skip to content

Commit bf6bfc0

Browse files
MAGETWO-46847: [FF] Inline translation is unavailable for button elements
1 parent 5e16608 commit bf6bfc0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/web/mage/edit-trigger.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,17 @@
9898
* @protected
9999
*/
100100
_onMouseMove: function(e) {
101-
var target = $(e.target);
101+
var target = $(e.target),
102+
inner = target.find(this.options.editSelector);
103+
102104
target = target.is(this.trigger) || target.is(this.options.editSelector) ?
103105
target :
104106
target.parents(this.options.editSelector).first();
105107

108+
if ($(e.target).is('button') && inner.length) {
109+
target = inner;
110+
}
111+
106112
if (target.size()) {
107113
if (!target.is(this.trigger)) {
108114
this._setPosition(target);

0 commit comments

Comments
 (0)