fix(SW-1111) Moved map to a page instead of intercepted route
This commit is contained in:
@@ -23,7 +23,7 @@ export default function List({
|
||||
getItemProps={getItemProps}
|
||||
highlightedIndex={highlightedIndex}
|
||||
index={initialIndex + index}
|
||||
key={location.id}
|
||||
key={location.id + index}
|
||||
location={location}
|
||||
/>
|
||||
))}
|
||||
|
||||
@@ -26,6 +26,7 @@ import type { SearchProps } from "@/types/components/search"
|
||||
import type { Location } from "@/types/trpc/routers/hotel/locations"
|
||||
|
||||
const name = "search"
|
||||
|
||||
export default function Search({ locations }: SearchProps) {
|
||||
const { register, setValue, trigger, unregister } =
|
||||
useFormContext<BookingWidgetSchema>()
|
||||
@@ -166,7 +167,6 @@ export default function Search({ locations }: SearchProps) {
|
||||
onInputValueChange={(inputValue) => dispatchInputValue(inputValue)}
|
||||
>
|
||||
{({
|
||||
closeMenu,
|
||||
getInputProps,
|
||||
getItemProps,
|
||||
getLabelProps,
|
||||
@@ -207,9 +207,6 @@ export default function Search({ locations }: SearchProps) {
|
||||
id: "Destinations & hotels",
|
||||
}),
|
||||
...register(name, {
|
||||
onBlur: function () {
|
||||
closeMenu()
|
||||
},
|
||||
onChange: handleOnChange,
|
||||
}),
|
||||
type: "search",
|
||||
|
||||
Reference in New Issue
Block a user