Fix input focus on time select
This commit is contained in:
@@ -1174,9 +1174,7 @@ function SelectedSlotCard(props: BookingShellProps & { compact?: boolean }) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!selectedSlot) return;
|
if (!selectedSlot) return;
|
||||||
|
|
||||||
window.requestAnimationFrame(() => {
|
|
||||||
customerNameInputRef.current?.focus();
|
customerNameInputRef.current?.focus();
|
||||||
});
|
|
||||||
}, [selectedSlot]);
|
}, [selectedSlot]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user