Comments (2)
I just maked own classes and use absolute not fixed
<Autocomplete
wrapperProps={{className: 'bbs_autocomplete_wrapper'}}
renderMenu={(items) =>
<div className="bbs_autocomplete_content" children={items}/>
}
renderItem={(item) =>
<div key={JSON.stringify(item)} className="bbs_autocomplete_item">{item.display}</div>
}
/>
.bbs_autocomplete_wrapper {
position: relative;
width: 100%;
}.bbs_autocomplete_content {
position: absolute;
width: 100%;
max-height: 250px;
top: 100%;
left: 0;
margin-top: 4px;
border: 1px solid #ced4da;
border-radius: .2rem;
background: #fff;
font-size: 100%;
overflow: auto;
z-index: 999;
}.bbs_autocomplete_content:empty {
display: none;
}.bbs_autocomplete_item {
padding: 0.25rem 0.5rem;
font-size: 0.8125rem;
color: #232323;
cursor: pointer;
}.bbs_autocomplete_item:hover {
background: #f0f0f0;
}
from react-autocomplete.
FYI: In my case I just needed position: relative
in the wrapperStyle.
from react-autocomplete.
Related Issues (20)
- iOS Safari: Menu does not open again after selection of an option HOT 1
- Cannot select via click if rendered item is an imported Component. HOT 7
- Sometimes the dropdown does not close
- missing label for input field
- Any way to programatically close the menu /lose focus on the input with the mouse in the menu?
- Render methods should be a pure function of props and state. HOT 2
- Limit items show in the menu HOT 2
- Add throttle to prevent lag
- getItemValue() vs renderItem() HOT 2
- blur() is not triggered when the dropdown is scrolled in phone
- id passed to the inputProps breaks the dropdown
- how to select the search list item ? HOT 2
- how to create multi level drop down
- how to set required validation to autocomplete when used in form
- Incorrect import in examples
- How to disable options if already selected HOT 2
- changing the font in the input box?
- Give options to replace input with any other element
- Is this repo alive? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-autocomplete.