iziToast
iziToast copied to clipboard
Feature: Add label or other elements in "input" property
Right now, when inserting a label or another element before an element that is an "input" element, nothing inside the function is executed.
For example this does not log anything to the console:
inputs: [
['<label>Checkbox</label><input type="checkbox">', 'change', function (instance, toast, input, e) {
console.info(input.checked);
}],
],
Am I doing it wrong or can this be implemented?