You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
In a project I am working on we're initializing the selectivity instance with some additional functionality before inserting it into the DOM, this works like a charm accept for this 1 thing.
Our input is 20px width, which is smaller than our placeholder, rendering it impossible to read.
Now I've scrambled trough the source code and found out there is this function setting the width of the input. Using a widthDetector which is used to fetch the width. This doesn't work if it's not in the DOM D:
So here my proposed solution for the function _updateInputWidth in the /inputs/multiple.js
In a project I am working on we're initializing the selectivity instance with some additional functionality before inserting it into the DOM, this works like a charm accept for this 1 thing.
Our input is 20px width, which is smaller than our placeholder, rendering it impossible to read.
Now I've scrambled trough the source code and found out there is this function setting the width of the input. Using a widthDetector which is used to fetch the width. This doesn't work if it's not in the DOM D:
So here my proposed solution for the function _updateInputWidth in the /inputs/multiple.js
Using the size attribute on the input will make sure the browser always picks the right width based on the content.
The text was updated successfully, but these errors were encountered: