add message for emojis not supported on this type

main
alexanderroese 2024-07-25 22:14:40 +02:00
parent abc9df8518
commit a2ea6b270a
1 changed files with 7 additions and 0 deletions

View File

@ -584,6 +584,13 @@
document.querySelector(`label[for="${inputID}-label"] span`).style.color = 'red'; document.querySelector(`label[for="${inputID}-label"] span`).style.color = 'red';
} }
const event = new Event('input', {
bubbles: true,
cancelable: true,
});
document.querySelector(`#${inputID}`).dispatchEvent(event);
showErrorMessageIfEmojiNotSupported(e.target.value, inputID) showErrorMessageIfEmojiNotSupported(e.target.value, inputID)
}); });
}, 1000); }, 1000);