Skip to content

Commit c286de7

Browse files
authored
Update multi-select.js
I believe the overflow properly of the multi-select should be set to 'auto', not 'scroll' when a height is specified. This is personal preference, but I believe it makes a better UX.
1 parent 54e54e8 commit c286de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/multi-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ class MultiSelect extends BaseComponent {
479479

480480
if (this._config.optionsMaxHeight !== 'auto') {
481481
optionsDiv.style.maxHeight = `${this._config.optionsMaxHeight}px`
482-
optionsDiv.style.overflow = 'scroll'
482+
optionsDiv.style.overflow = 'auto'
483483
}
484484

485485
dropdownDiv.append(optionsDiv)

0 commit comments

Comments
 (0)