File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
addons/html_builder/static/src/website_preview Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,7 @@ export class WebsiteBuilder extends Component {
196196 // The clicks on the iframe are listened, so that links with external
197197 // redirections can be opened in the top window.
198198 this . websiteContent . el . contentDocument . addEventListener ( "click" , ( ev ) => {
199- const isEditing = this . websiteContext . edition || this . websiteContext . translation ;
200- if ( ! isEditing ) {
199+ if ( ! this . state . isEditing ) {
201200 // Forward clicks to close backend client action's navbar
202201 // dropdowns.
203202 this . websiteContent . el . dispatchEvent ( new MouseEvent ( "click" , ev ) ) ;
@@ -247,7 +246,7 @@ export class WebsiteBuilder extends Component {
247246 });
248247 } else
249248 */
250- if ( href && target !== "_blank" && ! isEditing ) {
249+ if ( href && target !== "_blank" && ! this . state . isEditing ) {
251250 if ( isTopWindowURL ( linkEl ) ) {
252251 ev . preventDefault ( ) ;
253252 browser . location . assign ( href ) ;
You can’t perform that action at this time.
0 commit comments