Skip to content

Commit

Permalink
Merge branch 'rel-1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Feb 20, 2025
2 parents 4ff8484 + 6549e9a commit ec68437
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@

<DocsPageSection>
<DocsPageSectionHeader Title="Upload image">
Uploading image has a similar API to our FileEdit component and it is fairly simple to do.
Uploading an image has a similar API to our <Code>FileEdit</Code> component and is fairly simple to use.
<Strong>Note that</Strong> the events related to file uploads fire separately for each file instead of grouping them.
This behavior comes from the underlying Easy Markdown Editor, which processes files individually.
</DocsPageSectionHeader>
<DocsPageSectionContent Outlined FullWidth>
<MarkdownUploadImageExample />
Expand Down
4 changes: 3 additions & 1 deletion Source/Extensions/Blazorise.Markdown/wwwroot/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ export function initialize(dotNetObjectRef, element, elementId, options) {
imageUploadNotifier.onError = onError;

// Reduce to purely serializable data, plus build an index by ID
element._blazorFilesById = {};
if (element._blazorFilesById == null) {
element._blazorFilesById = {};
}

var fileEntry = {
id: ++nextFileId,
Expand Down
2 changes: 1 addition & 1 deletion Source/Extensions/Blazorise.Video/wwwroot/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ function registerToEvents(dotNetAdapter, player, options) {
invokeDotNetMethodAsync(dotNetAdapter, "NotifyVolumeChange", event.detail.volume || 0, event.detail.muted || false);
});

player.addEventListener('seeking', (event) => {
player.addEventListener('media-seeking-request', (event) => {
invokeDotNetMethodAsync(dotNetAdapter, "NotifySeeking", event.detail || 0);
});

Expand Down

0 comments on commit ec68437

Please sign in to comment.