Skip to content

Commit

Permalink
fix(#150): fix custom field selector
Browse files Browse the repository at this point in the history
fix #150 in CustomField by using internal component onChangeValue
handler to update script value.
  • Loading branch information
NPavie committed Jun 27, 2023
1 parent 7fe6d33 commit e5927e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/Fields/CustomField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function CustomField({ item, onChange, initialValue, controlId }) {
return (
<select
id={controlId}
onChange={(e) => onChange(e)}
onChange={(e) => onChangeValue(e.target.value)}
value={initialValue ?? ''}
>
{valueChoices.map((option, idx) => {
Expand Down

0 comments on commit e5927e0

Please sign in to comment.