I have a status bar button which when clicked opens a menu. On the menu is a checkbox, which displays fine. I’ve attached a handler (tried change and input events) but it does not fire. If I use click or focus then it fires. I must be missing something very basic, but I can’t figure out what?
const $checkbox = $.create(
'checkbox', {
id: 'statusbar-' + appName + '-pref-ensureEOF',
label: 'Ensure EOF',
checked: getEnsureEOF()
}
).finalize().on(
'input',
function (evt) {
dialogs.alert(evt.target.checked);
}
);