Skip to content

Conversation

@cbernat
Copy link

@cbernat cbernat commented Oct 20, 2017

Added an input to allow type search, in selectbox dropdown with scroll.
Added a resize list function for dropdowns displayed on top of select.
Added input event to capture typed text.
Removed Keypress event for dropdowns.
Removed keydown for backspace, to allow delete chars in search input.

@cbernat
Copy link
Author

cbernat commented Oct 20, 2017

I had to do this modificationi for my project, and I thought it maybe useful to someone. @marcj

@andresmoschini
Copy link

Hey @cbernat! I had issues with the autocomplete and I found it, it will be very helpful, thanks!

}
this.typeSearch = control.find('.selectBox-input').val();
options.find('A').each(function () {
if ($(this).text().substr(0, self.typeSearch.length).toLowerCase() === self.typeSearch.toLowerCase()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our current implementation, I had to patch this in this way:

Suggested change
if ($(this).text().substr(0, self.typeSearch.length).toLowerCase() === self.typeSearch.toLowerCase()) {
if ($(this).text().trim().substr(0, self.typeSearch.length).toLowerCase() === self.typeSearch.toLowerCase()) {

Comment on lines +2 to +4
.selectBox-dropdown2{
min-width: 150px;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.selectBox-dropdown2{
min-width: 150px;
}
.selectBox-dropdown2 {
min-width: 150px;
}

🤣

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a test of course, ignore it please 😓
This branch will never get merged at this point.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants