Skip to content
Discussion options

You must be logged in to vote

Please try replacing:

const images = await arg({
  placeholder: 'Drop the image(s) you want to upload',
  drop: true,
  ignoreBlur: true,
})

with:

const images = await drop('Drop the image(s) you want to upload')

Why

drop:true was removed from the arg options since more UI options are being added. drop is really just a helper that wraps arg. If you want to use the arg version for whatever reason, it would be:

const images = await arg({
  placeholder: 'Drop the image(s) you want to upload',
  ignoreBlur: true,
  ui: 'drop',
})

The other ui helpers:

  • await hotkey()
  • await textarea()
  • await editor()

all wrap arg in a similar fashion.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@JamesHenry
Comment options

@johnlindquist
Comment options

@JamesHenry
Comment options

@johnlindquist
Comment options

@JamesHenry
Comment options

Answer selected by kentcdodds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Errors
Labels
None yet
3 participants