Open 9mm opened 5 months ago
I have the same issue. When i am clicking on a pre-filled tom select , my window got scrolled to the far left.
@9mm
quick dirty fix
.input-hidden .ts-control > input {
opacity: 0 !important;
position: absolute !important;
left: 0 !important;
}
bc the base style from /node_modules/tom-select/dist/css/tom-select.default.css is:
.input-hidden .ts-control > input {
opacity: 0;
position: absolute;
left: -10000px;
}
Bug description
I notice you have another commit where you added
preventScroll
Here is another place where it keeps scrolling my app. I've tested adding it here and it works correctly:
Here is my full config:
Expected behavior
It should not scroll the window the FIRST time clicking into a tom-select which already has a pre-filled in value.
i notice it does not occur if there is not an item already in the box
Steps to reproduce
I dont have a jsfiddle but i can potentially make one later i just wanted to save this here
Additional context