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) { if (OH.ParsePHRule(rule) !== null) {
continue continue
} }
if(leftOvers.indexOf(rule) >= 0){
continue
}
leftOvers.push(rule) leftOvers.push(rule)
} }
return leftOvers return leftOvers

View file

@ -31,7 +31,7 @@ export default class OpeningHoursRange extends BaseUIElement {
) )
const deleteRange = Svg.delete_icon_ui() 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(() => { .onClick(() => {
this._onDelete() this._onDelete()
}) })