Skip to content

FormulateInput - calling error in uploader method cause parent function promise to get rejected #550

@kristofferkjelde

Description

@kristofferkjelde

Describe the bug
If calling error in custom :uploader method in a try/catch, will cause the parent function promise to get rejected.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codepen.io/kristofferkjelde/pen/zYRyMLa
  2. upload a fil, .png
  3. See stacktrace/error in console

Expected behavior
I don't expect the error property in the :uploader method to have unhandle promise.

Screenshots
Screenshot 2022-06-13 at 22 54 48
Screenshot 2022-06-13 at 22 54 56
Screenshot 2022-06-13 at 22 56 03

Device information:

  • Device: [e.g. iPhone6, 1997 Dell]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportA submitted bug report, not yet validated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions