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 113113 </section >
114114 <section name =" AddLocationForm" >
115115 <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']" />
117117 <element name =" cancelButton" type =" button" selector =" aside.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal button#cancel" />
118118 <element name =" editFormSave" type =" button" selector =" aside.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal button#save" />
119119 <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 {
109109 return currentElement [ 0 ] ;
110110 }
111111
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
113113 const searchInChildren = currentElement . find ( `[data-element="${ name } "]` ) ;
114114 // 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+ ) {
116118 return searchInChildren [ 0 ] ;
117119 }
118120
You can’t perform that action at this time.
0 commit comments