Skip to content

Commit

Permalink
Merge pull request #401 from qor5/fix-filename
Browse files Browse the repository at this point in the history
fix filename show readonly
  • Loading branch information
zhangshanwen authored Aug 1, 2024
2 parents 5d2933d + 2aab335 commit 7edd6bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media/filechooser.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func fileComponent(
content = h.Components(
web.Slot(
web.Scope(
VTextField().Attr(web.VField("name", f.File.FileName)...).Variant(VariantPlain),
VTextField().Attr(web.VField("name", f.File.FileName)...).Readonly(true).Variant(VariantPlain),
).VSlot(`{form}`),
).Name("title"),
web.Slot(h.If(base.IsImageFormat(f.File.FileName),
Expand Down Expand Up @@ -437,7 +437,7 @@ func folderComponent(
web.Slot(
web.Scope(
VTextField().Attr(web.VField("name", f.File.FileName)...).
Variant(VariantPlain),
Variant(VariantPlain).Readonly(true),
).VSlot(`{form}`),
).Name("title"),
web.Slot(h.Text(fmt.Sprintf("%v items", count))).Name("subtitle"),
Expand Down

0 comments on commit 7edd6bf

Please sign in to comment.