Open spotman opened 5 years ago
Hey @spotman did you implement a workaround for this?
@brandonburkett Sorry, no. There is no way to control this behavior outside of the library, the only possible workaround is to fork-and-patch.
@spotman Here is my hack workaround for now (can be used in mounted or after multiselect is rendered)
await this.$nextTick();
const selectInput = document.querySelector('.multiselect__input')
if (selectInput) {
selectInput.setAttribute('maxlength', '50');
}
Thanks for sharing, @brandonburkett !
Hi there!
Thanks again for this awesome library!
The case: new tag length must not exceed 50 chars. Possible fix: set
maxlength
on the input field.RTFM already but still can not find a way to do it out-of-the-box. Is it possible to define new tag max length or prevent typing in
search-change
event?Cheers, Denis.