marcelodolza / iziToast

Elegant, responsive, flexible and lightweight notification plugin with no dependencies.
https://marcelodolza.github.io/iziToast/
Apache License 2.0
2.61k stars 304 forks source link

Feature: Add label or other elements in "input" property #153

Open flaird opened 6 years ago

flaird commented 6 years ago

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?