mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-22 07:29:08 +00:00
fix: uncontrolled prop on controlled component
This commit is contained in:
committed by
Carlos Valente
parent
8232e64cc6
commit
a6cb7e5b20
@@ -72,7 +72,6 @@ function EventTriggerForm(props: EventTriggerFormProps) {
|
|||||||
variant='ontime'
|
variant='ontime'
|
||||||
value={cycleValue}
|
value={cycleValue}
|
||||||
onChange={(e) => setCycleValue(e.target.value as TimerLifeCycle)}
|
onChange={(e) => setCycleValue(e.target.value as TimerLifeCycle)}
|
||||||
defaultValue={TimerLifeCycle.onStart}
|
|
||||||
>
|
>
|
||||||
<option disabled>Lifecycle Trigger</option>
|
<option disabled>Lifecycle Trigger</option>
|
||||||
{eventTriggerOptions.map((cycle) => (
|
{eventTriggerOptions.map((cycle) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user