Skip to content

Commit

Permalink
Fix popover TS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
simonziegler committed May 29, 2024
1 parent 4dea6b6 commit e7654ae
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Material.Blazor/Components/Popover/MBPopover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export function show(elem, dotNetObject) {
elem._dotNetObject = dotNetObject;

const openedCallback = () => {
elem._dialog.unlisten('MDCMenuSurface:opened', openedCallback);
elem._popover.unlisten('MDCMenuSurface:opened', openedCallback);
dotNetObject.invokeMethodAsync('NotifyOpened');
};

elem._popover.listen('MDCMenuSurface:opened', openedCallback);

const closedCallback = () => {
elem._dialog.unlisten('MDCDialog:closing', closedCallback);
elem._popover.unlisten('MDCDialog:closing', closedCallback);
dotNetObject.invokeMethodAsync('NotifyClosed');
};

Expand Down
2 changes: 1 addition & 1 deletion Material.Blazor/Styles/_material-symbols-outlined.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 100 700;
src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v175/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsI.woff2) format('woff2');
src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v183/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsI.woff2) format('woff2');
}

.material-symbols-outlined {
Expand Down
2 changes: 1 addition & 1 deletion Material.Blazor/Styles/_material-symbols-rounded.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-family: 'Material Symbols Rounded';
font-style: normal;
font-weight: 100 700;
src: url(https://fonts.gstatic.com/s/materialsymbolsrounded/v173/sykg-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190Fjzag.woff2) format('woff2');
src: url(https://fonts.gstatic.com/s/materialsymbolsrounded/v181/sykg-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190Fjzag.woff2) format('woff2');
}

.material-symbols-rounded {
Expand Down
2 changes: 1 addition & 1 deletion Material.Blazor/Styles/_material-symbols-sharp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-family: 'Material Symbols Sharp';
font-style: normal;
font-weight: 100 700;
src: url(https://fonts.gstatic.com/s/materialsymbolssharp/v171/gNMVW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4aWE.woff2) format('woff2');
src: url(https://fonts.gstatic.com/s/materialsymbolssharp/v179/gNMVW2J8Roq16WD5tFNRaeLQk6-SHQ_R00k4aWE.woff2) format('woff2');
}

.material-symbols-sharp {
Expand Down
4 changes: 2 additions & 2 deletions Material.Blazor/wwwroot/material.blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -13796,12 +13796,12 @@ function MBPopover_show(elem, dotNetObject) {
elem._popover = elem._popover || MDCMenuSurface.attachTo(elem);
elem._dotNetObject = dotNetObject;
var openedCallback = function openedCallback() {
elem._dialog.unlisten('MDCMenuSurface:opened', openedCallback);
elem._popover.unlisten('MDCMenuSurface:opened', openedCallback);
dotNetObject.invokeMethodAsync('NotifyOpened');
};
elem._popover.listen('MDCMenuSurface:opened', openedCallback);
var closedCallback = function closedCallback() {
elem._dialog.unlisten('MDCDialog:closing', closedCallback);
elem._popover.unlisten('MDCDialog:closing', closedCallback);
dotNetObject.invokeMethodAsync('NotifyClosed');
};
elem._popover.listen('MDCMenuSurface:closed', closedCallback);
Expand Down
2 changes: 1 addition & 1 deletion Material.Blazor/wwwroot/material.blazor.min.js

Large diffs are not rendered by default.

0 comments on commit e7654ae

Please sign in to comment.