This commit is contained in:
Rainer Simon 2021-04-18 18:24:36 +02:00
parent a45338809d
commit 5c678f52f1
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ const setPosition = (wrapperEl, editorEl, selectedEl) => {
editorEl.style.bottom = `${containerHeight - annotationTop}px`;
}
// Check if vertical flipping helped, push down if not
// Check if vertical flipp helped, push down if not
const currentOrientation = editorEl.children[1].getBoundingClientRect();
if (currentOrientation.top < 0) {
editorEl.style.top = `${-containerBounds.top}px`;

View File

@ -1,5 +1,5 @@
import React, { Component, createRef } from 'react'
import { useCombobox } from 'downshift'
import React, { Component, createRef } from 'react';
import { useCombobox } from 'downshift';
export default class Autocomplete extends Component {