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