From 4a675be598b85c781c24111cc5b63c78574c3d26 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 22 Apr 2020 18:15:50 -0500 Subject: [PATCH] Use native accept='' for FileChooser --- app/gabsocial/features/forms/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/gabsocial/features/forms/index.js b/app/gabsocial/features/forms/index.js index cb0fcd20e..2ce37cbb0 100644 --- a/app/gabsocial/features/forms/index.js +++ b/app/gabsocial/features/forms/index.js @@ -230,15 +230,14 @@ export class FileChooser extends ImmutablePureComponent { static propTypes = { label: PropTypes.string, hint: PropTypes.string, - fileTypes: PropTypes.array, } static defaultProps = { - fileTypes: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'], + accept: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'], } render() { - const { label, hint, fileTypes, ...props } = this.props; + const { label, hint, ...props } = this.props; const id = uuidv4(); return ( @@ -248,7 +247,6 @@ export class FileChooser extends ImmutablePureComponent {