Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion precognition.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ If you are validating a subset of a form's inputs with Precognition, it can be u
id="avatar"
type="file"
onChange={(e) => {
form.setData('avatar', e.target.value);
form.setData('avatar', e.target.files[0);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it’s broken? Missing ] at the end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!


form.forgetError('avatar');
}}
Expand Down