Closed rhagigi closed 7 years ago
@rhagigi Hmm, thank you for the feedback, will test soon and update if it will work as expected. You can also do PR if you would like to :)
@rhagigi, thank you for the feedback once again.
Let me know if I can further improve the package.
https://github.com/yury-dymov/react-autocomplete-input/blob/master/src/AutoCompleteTextField.jsx#L276
This library is using left: boundingClientRect(el).left, which is the offset from the viewport. It should use el.offsetLeft, as what it's positioning is an absolutely positioned element, which means it needs to know the textarea's starting left within the closest relative position parent (or the viewport).