xcash / bootstrap-autocomplete

Bootstrap Autocomplete
MIT License
168 stars 72 forks source link

The selection is not rendering under a <table> td but at the screen's upper left side #99

Closed kenfookchoong closed 3 years ago

kenfookchoong commented 3 years ago

Describe the bug As what the title says when you put a textbox with autocomplete function inside a html table td, the div selection will not render under the td but at the screen's most upper left side

To Reproduce Just put the textbox inside a table's td

image image

Expected behavior the selection will be at the screen's upper left side

kenfookchoong commented 3 years ago

I'm sorry after adding the input box inside a div with bootstrap class col then it works .. sorry for wasting your time

https://jsfiddle.net/kenhookia/p6h0r4gv/2/

image

gizmotronic commented 3 years ago

I ran into the same thing. An enclosing element needs to include position: relative.