forked from langflow-ai/langflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: simplify InputFileComponent to use native file picker (langflow-…
…ai#5692) * ✨ (index.tsx): Add useRef hook to manage file input element reference for better control over file selection process 🐛 (index.tsx): Fix handleButtonClick function to handle file selection asynchronously and provide fallback option if file selection fails 🐛 (index.tsx): Fix handleNativeInputChange function to correctly handle file selection from native file input element and reset its value after selection * 📝 (index.tsx): Remove unused createFileUpload function and simplify handleButtonClick function to trigger file input click directly ♻️ (index.tsx): Refactor input element to use Button component for better styling and consistency * 📝 (inputFileComponent/index.tsx): remove unnecessary comment in handleButtonClick function
- Loading branch information
1 parent
cc0a906
commit e03ad63
Showing
1 changed file
with
71 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters