diff --git a/mu-plugins/blocks/query-filter/src/view.js b/mu-plugins/blocks/query-filter/src/view.js index 969104f62..c89e7ccf4 100644 --- a/mu-plugins/blocks/query-filter/src/view.js +++ b/mu-plugins/blocks/query-filter/src/view.js @@ -31,9 +31,9 @@ function toggleOverflowX() { if ( filtersElement ) { const currentOverflowX = window.getComputedStyle( filtersElement ).overflowX; - if ( currentOverflowX === 'hidden' ) { + if ( 'hidden' === currentOverflowX ) { filtersElement.style.overflowX = 'scroll'; - } else if ( currentOverflowX === 'scroll' ) { + } else if ( 'scroll' === currentOverflowX || 'auto' === currentOverflowX ) { filtersElement.style.overflowX = 'hidden'; } }