[BUG] Upload component applying styles on Drag/Drop
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
先重現 dcc.Upload 及其 accept、style、style_active 和 style_reject 設定,然後在回報中的 Edge 和 Firefox 版本中重現拖放行為。完成標準是:有效的 .obj 和 XLS/XLSX 檔案被拖放時顯示 active 樣式,而不是 reject 邊框;無效檔案仍顯示 reject 樣式。
由索引模型根據 Issue 內容生成。
描述
When using Drag/Drop to place files into an Upload component accepting only .obj or .XLS (seperate inputs for both filetypes) Edge display always the error border on the upload. Firefox diplaying the error broder when the obj File into the input with the accepting file Type .obj.
Describe your context
Running on Windows with Python 3.12
dash 3.1.0
dash-bootstrap-components 2.0.3
-
if frontend related, tell us your Browser, Version and OS
- OS: Windows
- Browser: Edge / Firefox
- Version: 138.0.3351.95 / 128.12.0esr
Describe the bug
Wrong colors on input borders when dropping Files with correct Filetype (obj / XLSX) setting on Edge always "red" for all input files and types. On Firefox only setting red border style for obj files.
Expected behavior
Show specified color in style_active attribute of input component
dcc.Upload(
id=f"{id_str}-upload-data",
children=html.Div(
[
"Drag und drop oder klicken um Datei für upload auszuwählen."
]
),
style={
"width": "100%",
"height": "60px",
"borderWidth": "2px",
"borderStyle": "solid",
"borderRadius": "5px",
"borderColor": "var(--bs-primary-border-subtle)",
"textAlign": "center",
},
multiple=False,
accept=file_extension,
className="align-content-center",
style_active={
"borderStyle": "solid",
"borderColor": "var(--bs-success)",
},
style_reject={
"borderStyle": "solid",
"borderColor": "var(--bs-danger)",
},
),
File type get set as "text/csv,application/vnd.ms-excel" for XLS inputs and .obj
- 主要語言
- Python
- 星號
- 24.5k
- 分支
- 2.3k
- 平均合併
- 3 天 7 小時
- 30 天內合併 PR
- 30
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/dash 的其他 Issue
-
P2 plotly-internal size: 1 task
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
Extract graph schema validation into properly named test可能已有人在做 @Nice6042 於 90 天前認領。 未關閉good first issue P3 size: 1 task
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
[BUG] Patch.update mutates a shared mapping and rewrites earlier merges可能已有人在做 @peterolkhov 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 35/100
維護者通常 1 天內回覆
-
[BUG] dcc.Dropdown: virtualized list keeps the height measured at opening when options grow while the menu is open可能已有人在做 @KoolADE85 於 2 天前認領。 未關閉bug P3 size: 1
plotly/dash#4131 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
[BUG] `set_props` streaming可能已有人在做 @BSd3v 於 5 天前認領。 未關閉bug P3 size: 1
難度 4/5 3-5 天 新手友好度 35/100
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
comp/desktop P3 type/feature
難度 2/5 1-3 小時 新手友好度 78/100
NousResearch/hermes-agent#154285 ·
維護者通常 1 天內回覆
-
docs: qualify copied and custom kubectl debug policy notes可能已有人在做 @nym01 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
kubescape/cel-admission-library#166 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
SACGF/variantgrid#2804 · 1 則留言 ·
維護者通常 1 天內回覆
-
[BUG] HTTP lifecycle dispatch treats a NO_PROXY-only environment as corporate egress and skips the resolve-and-pinned session可能已有人在做 @bodapatisaikrishna 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆