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 {
196
196
// The clicks on the iframe are listened, so that links with external
197
197
// redirections can be opened in the top window.
198
198
this . websiteContent . el . contentDocument . addEventListener ( "click" , ( ev ) => {
199
- const isEditing = this . websiteContext . edition || this . websiteContext . translation ;
200
- if ( ! isEditing ) {
199
+ if ( ! this . state . isEditing ) {
201
200
// Forward clicks to close backend client action's navbar
202
201
// dropdowns.
203
202
this . websiteContent . el . dispatchEvent ( new MouseEvent ( "click" , ev ) ) ;
@@ -247,7 +246,7 @@ export class WebsiteBuilder extends Component {
247
246
});
248
247
} else
249
248
*/
250
- if ( href && target !== "_blank" && ! isEditing ) {
249
+ if ( href && target !== "_blank" && ! this . state . isEditing ) {
251
250
if ( isTopWindowURL ( linkEl ) ) {
252
251
ev . preventDefault ( ) ;
253
252
browser . location . assign ( href ) ;
You can’t perform that action at this time.
0 commit comments