File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
app/code/Magento/PageBuilder Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 113
113
</section >
114
114
<section name =" AddLocationForm" >
115
115
<element name =" form" type =" text" selector =" aside div.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal_map_location_insert_form" />
116
- <element name =" formTitle" type =" text" selector =" aside.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal h1.modal-title[data-content-type ='title']" />
116
+ <element name =" formTitle" type =" text" selector =" aside.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal h1.modal-title[data-role ='title']" />
117
117
<element name =" cancelButton" type =" button" selector =" aside.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal button#cancel" />
118
118
<element name =" editFormSave" type =" button" selector =" aside.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal button#save" />
119
119
<element name =" base" type =" button" selector =" //div[@data-index='position']//div[@class='map-field']" />
Original file line number Diff line number Diff line change @@ -109,10 +109,12 @@ export default class Configurable implements ReadInterface {
109
109
return currentElement [ 0 ] ;
110
110
}
111
111
112
- // Attempt to find the element in the children of the data-role
112
+ // Attempt to find the element in the children of the data-content-type
113
113
const searchInChildren = currentElement . find ( `[data-element="${ name } "]` ) ;
114
114
// Ensure the element is within the current content type
115
- if ( searchInChildren . length > 0 && searchInChildren . closest ( "[data-role]" ) [ 0 ] === currentElement [ 0 ] ) {
115
+ if ( searchInChildren . length > 0
116
+ && searchInChildren . closest ( "[data-content-type]" ) [ 0 ] === currentElement [ 0 ]
117
+ ) {
116
118
return searchInChildren [ 0 ] ;
117
119
}
118
120
You can’t perform that action at this time.
0 commit comments