Fix opening hours input element

This commit is contained in:
Pieter Vander Vennet 2021-06-16 14:23:53 +02:00
parent 94f9a0de56
commit 64ec06bfc8
19 changed files with 643 additions and 599 deletions

View file

@ -102,6 +102,8 @@ export default abstract class BaseUIElement {
if(this.InnerConstructElement === undefined){
throw "ERROR! This is not a correct baseUIElement: "+this.constructor.name
}
try{
const el = this.InnerConstructElement();
@ -149,7 +151,13 @@ export default abstract class BaseUIElement {
el.addEventListener('mouseout', () => self._onHover.setData(false));
}
return el
return el}catch(e){
const domExc = e as DOMException;
if(domExc){
console.log("An exception occured", domExc.code, domExc.message, domExc.name )
}
console.error(e)
}
}
public AsMarkdown(): string{