Skip to content

Commit 61bc611

Browse files
authored
Merge pull request #362 from awesomemotive/fix/customizer-ragne-slider-control
Fix customizer range slider control being affected by the header builder
2 parents e2f9842 + 79f090e commit 61bc611

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

assets/js/src/admin/botiga-bhfb.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
this.headerPresets();
4343

4444
this.extraNavigation();
45-
45+
4646

4747
this.showHideBuilder();
4848
this.showHideBuilderTop();
@@ -359,11 +359,11 @@
359359

360360
$( document ).on( 'click', '.botiga-bhfb-area:not(.bhfb-available-components)', function(e){
361361

362-
const
362+
const
363363
popup = _this.currentBuilder.find( '#botiga-bhfb-elements' ),
364364
rect = $(this)[0].getBoundingClientRect(),
365365
row = $(this).data( 'bhfb-row' );
366-
366+
367367
setTimeout(function(){
368368
popup.css( 'top', 0 );
369369
popup.css( 'left', rect.left );
@@ -389,19 +389,15 @@
389389
} );
390390

391391
$( '#customize-preview iframe' ).on( 'mouseup', function(e) {
392-
if( ! _this.currentBuilder ) {
393-
return false;
392+
if( _this.currentBuilder ) {
393+
_this.closeElementsPopup(e);
394394
}
395-
396-
_this.closeElementsPopup(e);
397395
} );
398396

399397
$( document ).on( 'mouseup', function(e){
400-
if( ! _this.currentBuilder ) {
401-
return false;
398+
if( _this.currentBuilder ) {
399+
_this.closeElementsPopup(e);
402400
}
403-
404-
_this.closeElementsPopup(e);
405401
} );
406402

407403
},

0 commit comments

Comments
 (0)