Skip to content

Commit

Permalink
Merge pull request #47 from KristofferStrube/fix/filepickeraccepttype…
Browse files Browse the repository at this point in the history
…-description-has-default-value

Added default value for `FilePickerAcceptType.Description`
  • Loading branch information
KristofferStrube authored Oct 5, 2023
2 parents de52e51 + ec2957b commit 3848dfc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 138 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@
<span class="oi oi-code" aria-hidden="true"></span> InputFile Example
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="Status">
<span class="oi oi-warning" aria-hidden="true"></span> API Coverage Status
</NavLink>
</div>
</nav>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ enum WellKnownDirectory {
typedef (WellKnownDirectory or FileSystemHandle) StartInDirectory;
dictionary FilePickerAcceptType {
USVString description;
USVString description = """";
record<USVString, (USVString or sequence<USVString>)> accept;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class FilePickerAcceptType
{
[JsonPropertyName("description")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Description { get; set; }
public string? Description { get; set; } = "";

[JsonPropertyName("accept")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
Expand Down

0 comments on commit 3848dfc

Please sign in to comment.