fix: SW-1010 Fixed naming conventions
This commit is contained in:
@@ -63,19 +63,19 @@ export default function GuestsRoomsPickerForm() {
|
|||||||
(document.querySelector("#booking-widget")?.getBoundingClientRect()
|
(document.querySelector("#booking-widget")?.getBoundingClientRect()
|
||||||
.bottom ?? 0) -
|
.bottom ?? 0) -
|
||||||
50
|
50
|
||||||
const innerContainerHt = document
|
const innerContainerHeight = document
|
||||||
.querySelector(".react-aria-Popover")
|
.querySelector(".guests_picker_popover")
|
||||||
?.getBoundingClientRect().height
|
?.getBoundingClientRect().height
|
||||||
if (
|
if (
|
||||||
maxHeight != containerHeight &&
|
maxHeight != containerHeight &&
|
||||||
innerContainerHt &&
|
innerContainerHeight &&
|
||||||
maxHeight <= innerContainerHt
|
maxHeight <= innerContainerHeight
|
||||||
) {
|
) {
|
||||||
setContainerHeight(maxHeight)
|
setContainerHeight(maxHeight)
|
||||||
} else if (
|
} else if (
|
||||||
containerHeight &&
|
containerHeight &&
|
||||||
innerContainerHt &&
|
innerContainerHeight &&
|
||||||
maxHeight > innerContainerHt
|
maxHeight > innerContainerHeight
|
||||||
) {
|
) {
|
||||||
setContainerHeight(0)
|
setContainerHeight(0)
|
||||||
}
|
}
|
||||||
@@ -98,6 +98,7 @@ export default function GuestsRoomsPickerForm() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Popover
|
<Popover
|
||||||
|
className="guests_picker_popover"
|
||||||
placement="bottom start"
|
placement="bottom start"
|
||||||
offset={36}
|
offset={36}
|
||||||
style={containerHeight ? { overflow: "auto" } : {}}
|
style={containerHeight ? { overflow: "auto" } : {}}
|
||||||
|
|||||||
Reference in New Issue
Block a user