Fix: stabilize opening hours, make delete clickable again

This commit is contained in:
Pieter Vander Vennet 2023-05-04 23:32:37 +02:00
parent 8fafd0a8a5
commit cc60d2a5fb
2 changed files with 4 additions and 1 deletions

View file

@ -70,6 +70,9 @@ export default class OpeningHoursInput extends InputElement<string> {
if (OH.ParsePHRule(rule) !== null) {
continue
}
if(leftOvers.indexOf(rule) >= 0){
continue
}
leftOvers.push(rule)
}
return leftOvers

View file

@ -31,7 +31,7 @@ export default class OpeningHoursRange extends BaseUIElement {
)
const deleteRange = Svg.delete_icon_ui()
.SetClass("rounded-full w-6 h-6 block bg-black")
.SetClass("rounded-full w-6 h-6 block bg-black pointer-events-auto ")
.onClick(() => {
this._onDelete()
})