diff --git a/imports/ui/components/Field.jsx b/imports/ui/components/Field.jsx index 5741dd1..9222412 100644 --- a/imports/ui/components/Field.jsx +++ b/imports/ui/components/Field.jsx @@ -12,7 +12,7 @@ export class Field extends React.Component { triggerUpdate() { // Trigger an onChange on inital load, to support browser prefilled values. const { onChange } = this.props; - if (this.input && this.input.value) { + if (this.input && this.input.value && onChange) { onChange({ target: { value: this.input.value } }); } }