Tweak registering besService and unify textarea and div contenteditable classes

This commit is contained in:
2024-03-26 10:53:02 +01:00
parent dca6ecd28a
commit 1ed14519e7
2 changed files with 27 additions and 36 deletions

View File

@@ -994,11 +994,9 @@ class BesPopupEl extends HTMLElement {
}
window.onload = () => {
document
.querySelectorAll('.bes-service')
.forEach(hostElement => BesService.register(hostElement))
document.querySelectorAll('.bes-service-textarea').forEach(hostElement => {
BesTAService.register(hostElement)
document.querySelectorAll('.bes-service').forEach(hostElement => {
if (hostElement.tagName === 'TEXTAREA') BesTAService.register(hostElement)
else BesService.register(hostElement)
})
}