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

Ability to disable autocomplete of metafield inputs #2007

Closed
amacwhirter opened this issue Dec 26, 2019 · 1 comment · Fixed by #2147
Closed

Ability to disable autocomplete of metafield inputs #2007

amacwhirter opened this issue Dec 26, 2019 · 1 comment · Fixed by #2147
Labels
Feature Help Wanted Indicates that we’d especially appreciate community input in this issue

Comments

@amacwhirter
Copy link

When using Uppy React Dashboard, we are including metaFields for the user to update basic information of the file before upload. Immediately on focus of the input, autocomplete provides suggestions based on past inputs - is there a way to disable this autocomplete? Maybe have a boolean in the metaFields object to enable/disable this feature?

@goto-bus-stop
Copy link
Contributor

goto-bus-stop commented Jan 13, 2020

Thanks for filing an issue! We've basically held off on any detailed metaFields customization, because there are just way too many things that you may want to customise. For example, users have asked for different text input types, checkboxes, and even embedded maps to add location metadata.

I think our preferred solution would be to allow users to embed any Preact element:

metaFields: [
  {
    name: 'authorEmail',
    // the `h` parameter would be so people can still create preact elements
    // even if they are using a different library (or no library) in their app
    render ({ value, onChange }, h) {
     
      return <input type="email" value={value} onChange={e => onChange(e.target.value)} />
    }
  }
]

but we haven't gotten around to implementing that yet.

Earlier issues:

#454
#617
#651

I wrote a little about what would need to be done here:
#809 (comment)

@goto-bus-stop goto-bus-stop added Dashboard Help Wanted Indicates that we’d especially appreciate community input in this issue and removed Triage labels Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Help Wanted Indicates that we’d especially appreciate community input in this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants