Skip to content

Commit

Permalink
Fix photos always being disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Sep 13, 2021
1 parent 8839c8b commit b1359bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@uppy/core/src/index.js
Expand Up @@ -184,6 +184,8 @@ class Uppy {
// [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
this.calculateProgress = throttle(this.calculateProgress.bind(this), 500, { leading: true, trailing: true })

this.validateRestrictions = this.validateRestrictions.bind(this)

This comment has been minimized.

Copy link
@aduh95

aduh95 Sep 14, 2021

Member

We should avoid calling bind in non-Component constructors where possible, and instead use something like 1c7ac56.


this.store = this.opts.store
this.setState({
plugins: {},
Expand Down

0 comments on commit b1359bd

Please sign in to comment.