Skip to content

Conversation

@Qs-F
Copy link
Contributor

@Qs-F Qs-F commented Jul 9, 2025

関連URL

概要

変更内容

確認方法

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 9, 2025

Open in StackBlitz

npm i https://pkg.pr.new/kufu/smarthr-ui@5786

commit: cad6801

updateFiles(newFiles)

// 削除後、同一ファイルを再選択可能にするためinput.valueをリセット
inputRef.current.value = ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

お試ししていた中で見つけたので共有です!
複数ファイル選択した状態で、1つ削除したときに、valueを空にすると残りのfilesも認識されなくなるみたいです😭
(filesには入ってるけど、取得されなくなる)
valueに値は入れられないし、悩ましいですね・・。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

試しにvalueを空にした後、updateFiles(newFiles)を呼び出したらうまく行ったのでご参考まで・・!
https://github.com/kufu/smarthr-ui/pull/5805/files#diff-ce35f53c675c0805c9951c077709a72ba2fc7123a8fba5e614744a695a6fd4ceR208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants