Skip to content

Commit

Permalink
Use random wrapper IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Jul 11, 2024
1 parent e914660 commit 96faa26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>1.0.0-preview.7</Version>
<Version>1.0.0-preview.8</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
<AbpProjectType>module</AbpProjectType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<div id="ToolbarNotificationsWidgetArea">
@{
var randomId = Guid.NewGuid();
}
<div id="ToolbarNotificationsWidgetArea-@randomId">
@await Component.InvokeAsync("NotificationsToolbarItemWidget")
</div>

<script>
function refreshNotificationsToolbarItemWidget() {
(function ($) {
var $wrapper = $('#ToolbarNotificationsWidgetArea');
var $wrapper = $('#ToolbarNotificationsWidgetArea-@randomId');
var $widgets = $wrapper.find('.abp-widget-wrapper');
if (!$widgets) {
if ($wrapper.hasClass('abp-widget-wrapper')) {
Expand Down

0 comments on commit 96faa26

Please sign in to comment.