Skip to content

Commit 105b890

Browse files
authored
fix (dynamic content): prevent vertical scrollbar from showing in editor (#3555)
1 parent df6da5f commit 105b890

File tree

1 file changed

+1
-1
lines changed
  • src/components/advanced-autosuggest-control

1 file changed

+1
-1
lines changed

src/components/advanced-autosuggest-control/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class AdvancedAutosuggestControl extends Component {
279279
this.setState( { isShowingSuggestions: false } )
280280
}
281281

282-
if ( shouldShowSuggestions ) {
282+
if ( shouldShowSuggestions && this.state.containerRect ) {
283283
// We need to add styling to position the
284284
// suggestion drop down correctly. Scrolling
285285
// the editor/inspector breaks the position, so

0 commit comments

Comments
 (0)