File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/components/MessageInput Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ const ActionSheet = ({
4343 closeAttachActionSheet,
4444 pickFile,
4545 pickImage,
46- setInputBoxRef ,
46+ setAttachActionSheetRef ,
4747 styles,
4848 t,
4949} ) => (
5050 < ActionSheetCustom
51- ref = { setInputBoxRef }
51+ ref = { setAttachActionSheetRef }
5252 title = {
5353 < ActionSheetTitleContainer >
5454 < ActionSheetTitleText > { t ( 'Add a file' ) } </ ActionSheetTitleText >
Original file line number Diff line number Diff line change @@ -820,7 +820,8 @@ class MessageInput extends PureComponent {
820820 } ) ;
821821 } ;
822822
823- setInputBoxRef = ( o ) => ( this . attachActionSheet = o ) ;
823+ setAttachActionSheetRef = ( o ) => ( this . attachActionSheet = o ) ;
824+ setInputBoxRef = ( o ) => ( this . inputBox = o ) ;
824825
825826 closeAttachActionSheet = ( ) => {
826827 this . attachActionSheet . hide ( ) ;
@@ -873,7 +874,7 @@ class MessageInput extends PureComponent {
873874 */ }
874875
875876 < ActionSheetAttachment
876- setAttachActionSheetRef = { this . setInputBoxRef }
877+ setAttachActionSheetRef = { this . setAttachActionSheetRef }
877878 closeAttachActionSheet = { this . closeAttachActionSheet }
878879 pickFile = { this . _pickFile }
879880 pickImage = { this . _pickImage }
You can’t perform that action at this time.
0 commit comments