Skip to content

Commit 7bbb056

Browse files
committed
Merge remote-tracking branch 'origin/MC-3867' into cms-team-1-delivery
2 parents 3e451d5 + 5860076 commit 7bbb056

File tree

3 files changed

+4
-3
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

3 files changed

+4
-3
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/slider/preview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/slider/default/preview.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
each="$parent.getChildren()"
2020
data-bind="sortableChildren: { handle: '.navigation-dot-anchor', containment: 'parent', placeholder: 'navigation-dot sortable-placeholder', tolerance: 'pointer', start: onSortStart.bind($parent.preview), stop: onSortStop.bind($parent.preview) }">
2121
<div class="navigation-dot"
22+
tabindex="0"
2223
event="focusin: $parent.setFocusedSlide.bind($parent, $index(), false), focusout: $parent.onFocusOut.bind($parent)"
2324
css="active: $parent.activeSlide() === $index(), focus: $parent.focusedSlide() === $index()">
24-
<a class="navigation-dot-anchor" href="#" tabindex="0" click="$parent.onControlClick.bind($parent, $index())" hasFocus="$parent.focusedSlide() === $index()"/>
25+
<a class="navigation-dot-anchor" href="#" click="$parent.onControlClick.bind($parent, $index())" hasFocus="$parent.focusedSlide() === $index()"/>
2526
<with args="preview">
2627
<render with="preview" args="getOptions().template" />
2728
</with>

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/slider/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default class Preview extends PreviewCollection {
140140
*/
141141
public onFocusOut(data: PreviewCollection, event: JQueryEventObject) {
142142
if (_.isNull(event.relatedTarget) ||
143-
event.relatedTarget && !$.contains(event.currentTarget as HTMLElement, event.relatedTarget)
143+
event.relatedTarget && !$(event.currentTarget as HTMLElement).closest(event.relatedTarget).length
144144
) {
145145
this.setFocusedSlide(null);
146146
}

0 commit comments

Comments
 (0)