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