Closed nowlights closed 7 months ago
how can I reset values?
I try use this:
function slimSelectResetData(className) { let select = new SlimSelect({ select: '.' + className }); select.setData([{text: "Todos", value: "todos"}]); }
but not working, i have this error:
Cannot read properties of undefined (reading 'getSelected')
how can I reset values?
I try use this:
function slimSelectResetData(className) { let select = new SlimSelect({ select: '.' + className }); select.setData([{text: "Todos", value: "todos"}]); }
but not working, i have this error:
Cannot read properties of undefined (reading 'getSelected')