add message for emojis not supported on this type
parent
a2ea6b270a
commit
6925320a45
|
@ -583,13 +583,13 @@
|
||||||
document.querySelector(`label[for="${inputID}-label"] span`).textContent = 'Bitte gib deinen Text ein';
|
document.querySelector(`label[for="${inputID}-label"] span`).textContent = 'Bitte gib deinen Text ein';
|
||||||
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', {
|
const event = new Event('input', {
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
cancelable: true,
|
cancelable: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
document.querySelector(`#${inputID}`).dispatchEvent(event);
|
document.querySelector(`#${inputID}`).dispatchEvent(event); */
|
||||||
|
|
||||||
showErrorMessageIfEmojiNotSupported(e.target.value, inputID)
|
showErrorMessageIfEmojiNotSupported(e.target.value, inputID)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue