File tree Expand file tree Collapse file tree
packages/features/eventtypes/components/tabs/advanced Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments