Skip to content

Commit 1444138

Browse files
committed
libraryautosuggest: fix dropdown position
1 parent 52849f5 commit 1444138

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/LibraryAutoSuggest.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ export class LibraryAutoSuggest extends Component {
7575
}</a></li>`;
7676
}
7777
this.isShowingSuggestions = true;
78-
if (!this.textareaBounds) {
79-
this.textareaBounds = this.t.getBoundingClientRect();
80-
this.list.style.top = this.textareaBounds.bottom + 'px';
81-
this.list.style.left = this.textareaBounds.left + 'px';
82-
this.list.style.width = this.textareaBounds.width + 'px';
83-
}
78+
// if (!this.textareaBounds) {
79+
this.textareaBounds = this.t.getBoundingClientRect();
80+
this.list.style.top = this.textareaBounds.bottom + 'px';
81+
this.list.style.left = this.textareaBounds.left + 'px';
82+
this.list.style.width = this.textareaBounds.width + 'px';
83+
// }
8484
this.list.classList.add('is-open');
8585
});
8686
}, 500);

0 commit comments

Comments
 (0)