Skip to content

Commit 8c5aebd

Browse files
authored
ux improve (calcom#21815)
1 parent 4e2cff0 commit 8c5aebd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,8 @@ export const EventAdvancedTab = ({
910910
disabled={seatsLocked.disabled}
911911
//For old events if value > MAX_SEATS_PER_TIME_SLOT
912912
value={value > MAX_SEATS_PER_TIME_SLOT ? MAX_SEATS_PER_TIME_SLOT : value ?? 1}
913+
step={1}
914+
placeholder="1"
913915
min={1}
914916
max={MAX_SEATS_PER_TIME_SLOT}
915917
containerClassName={classNames(
@@ -921,8 +923,7 @@ export const EventAdvancedTab = ({
921923
labelClassName={customClassNames?.seatsOptions?.seatsInput?.label}
922924
addOnSuffix={t("seats")}
923925
onChange={(e) => {
924-
let enteredValue = Number(e.target.value);
925-
if (enteredValue < 1) enteredValue = 1;
926+
const enteredValue = parseInt(e.target.value);
926927
onChange(Math.min(enteredValue, MAX_SEATS_PER_TIME_SLOT));
927928
}}
928929
data-testid="seats-per-time-slot"

0 commit comments

Comments
 (0)