We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eff57fd commit bce62d4Copy full SHA for bce62d4
2 files changed
src/components/BootstrapBlazor.Region/Components/Region.razor.cs
@@ -55,6 +55,7 @@ public partial class Region
55
private IRegionService? RegionService { get; set; }
56
57
private string? ClassString => CssBuilder.Default("select bb-region")
58
+ .AddClass("disabled", IsDisabled)
59
.AddClassFromAttributes(AdditionalAttributes)
60
.Build();
61
src/components/BootstrapBlazor.Region/Components/Region.razor.js
@@ -6,7 +6,11 @@ export function init(id) {
6
if (el === null) {
7
return
8
}
9
- const popover = Popover.init(el);
+ const popover = Popover.init(el, {
10
+ isDisabled: () => {
11
+ return el.querySelector('.dropdown-toggle').getAttribute('disabled') === 'disabled'
12
+ }
13
+ });
14
15
Data.set(id, { el, popover });
16
0 commit comments