Fix radiobutton change notification

This commit is contained in:
Dmitry Lyzo 2020-03-11 15:04:29 +03:00
parent 202adf7aaf
commit a44473dca2

View File

@ -9,8 +9,14 @@ define(['css!./emby-radio', 'registerElement'], function () {
if (e.keyCode === 13) {
e.preventDefault();
if (!this.checked) {
this.checked = true;
this.dispatchEvent(new CustomEvent('change', {
bubbles: true
}));
}
return false;
}
}