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
when automaticly selecting items in code using the "Selected" value, the selected items is updating.. however, if there is a limit, and the selected number hits the limit, the rest isnt disabled as they are when im selecting it manually with the mouse.
If i deselect and item and select it again, the limit function triggers.
Is it possible to fix that or maybe have a go around? :-)
The text was updated successfully, but these errors were encountered:
Unfortunately I can't see a quick fix for this right now. It would require some restructuring of the code and I don't really have much time to spend on multi.js right now. If you want to have a go at it and create a PR though I'd be happy to merge it!
@fabianlindfors with the refactoring done in #45 this could be possible now. Not sure if we should just expose the new check_limit function or if it would be as simple as updating the event listener for the select change event to call check_limit before calling refresh_select.
With the amount of work I currently have on other projects, I found another solution back then :-) And since its more than 9 months ago and i dont have access to the project anymore, , I already forgot what the solution was :-) Ill keep watch on it though, in case i need it again.
when automaticly selecting items in code using the "Selected" value, the selected items is updating.. however, if there is a limit, and the selected number hits the limit, the rest isnt disabled as they are when im selecting it manually with the mouse.
If i deselect and item and select it again, the limit function triggers.
Is it possible to fix that or maybe have a go around? :-)
The text was updated successfully, but these errors were encountered: