0👍
You should update the returnValue
to false
in order to prevent the selection
onItemSelecting(event) {
if (event.object.getSelectedItems().length >= maxSelectedItems) {
event.returnValue = false;
}
}
- [Vuejs]-How can values be passed to Vue.js from within a server-rendered template (i.e. integrate Vue.js app with a django template)
- [Vuejs]-Why the HTML button is not working with the called [function]?
Source:stackexchange.com