Image drag/drop isn't working with latest beta? 1.3.0-beta.20 #332
Answered
by
johnlindquist
kentcdodds
asked this question in
Errors
-
|
The specific script: #310 Doesn't seem to work in the terminal either (is it supposed to?): It's been a few weeks since I tried this so I'm not sure when it broke. |
Beta Was this translation helpful? Give feedback.
Answered by
johnlindquist
Jun 28, 2021
Replies: 1 comment 7 replies
-
|
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
const images = await arg({
placeholder: 'Drop the image(s) you want to upload',
ignoreBlur: true,
ui: 'drop',
})The other ui helpers:
all wrap |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
kentcdodds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Please try replacing:
with:
Why
drop:truewas removed from theargoptions since more UI options are being added.dropis really just a helper that wrapsarg. If you want to use theargversion for whatever reason, it would be:The other ui helpers:
await hotkey()await textarea()await editor()all wrap
argin a similar fashion.