Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cropFiles option for drop pane throws 'invalid params error' #535

Open
allmarkedup opened this issue Oct 18, 2023 · 0 comments
Open

cropFiles option for drop pane throws 'invalid params error' #535

allmarkedup opened this issue Oct 18, 2023 · 0 comments

Comments

@allmarkedup
Copy link

Adding a cropFiles entry in the dropPane config throws an error and prevents the drop pane from functioning.

It doesn't seem to matter what the value is (true or false) - the error is thrown if the cropFiles key is present. The following will throw an error:

client
  .picker({
    container: "#my-drop-pane",
    displayMode: "dropPane",
    dropPane: {
      cropFiles: true,
      overlay: false,
      onSuccess: function (res) {
        console.log(res);
      },
    },
  })
  .open();

Expected Behavior

The dropPane options should accept a cropFiles option, as described in the docs.

Current Behavior

Including a cropFiles entry in the dropPane options throws an error.

Steps to Reproduce (for bugs)

This fiddle (with cropFiles option) throws an error: https://jsfiddle.net/he9k8c7w/4/
Remove the cropFiles option and it works fine: https://jsfiddle.net/wftLu57z/

Additional Screenshots

CleanShot 2023-10-18 at 10 42 26@2x

Your Environment

  • Version used: 3.27.0
  • Browser Name and version: All latest evergreen browsers
  • Operating System and version (desktop or mobile): desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant