How can i prevent dropdown list to scroll over input ?
New DiscussionI would like to find a way how I can keep my search text displayed in a dropdown box and not scrolled over by the dropdown items. In my case i have a dropdown box that has on top a search box that allows user to filter the list to narrow down the items. The filter etc. works fine, the only issue i am having is that once the user starts scrolling it will scroll over the search box. How could i achieve that ?
This is what the dropdown looks before scroll

And that’s when i scroll

My Templete Code
refresh clear {{ option.name }}
And this is my styleSheet
.grid__wrapper {
margin: 10px 16px;
}
button {
border: 1px solid;
margin-bottom: 0;
}
.drop-down__scroll-container {
height: 300px;
padding-top: 16px;
overflow: scroll;
}
::ng-deep {
.filter-input {
.igx-input-group {
position: sticky;
top: -16px;
background-color: white;
padding: 11px 22px;
-webkit-box-shadow: 0px 7px 20px 0px rgba(0, 0, 0, 0.26);
-moz-box-shadow: 0px 7px 20px 0px rgba(0, 0, 0, 0.26);
box-shadow: 0px 7px 20px 0px rgba(0, 0, 0, 0.26);
}
.igx-input-group__bundle:hover {
box-shadow: none
}
.igx-input-group__bundle {
padding-top: 0 !important;
box-shadow: none;
}
}
}
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
3 Created On
Aug 19, 2022 Last Post
3 years, 6 months ago 