Skip to content

Commit 4254fab

Browse files
authored
fix(ColorPicker): throw exception when dispose (#4457)
1 parent c07c234 commit 4254fab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function update(id, options) {
1616
export function dispose(id) {
1717
const data = Data.get(id);
1818
Data.remove(id);
19-
if (data) {
19+
if (data && data.pickr) {
2020
data.pickr.destroyAndRemove();
2121
}
2222
}

0 commit comments

Comments
 (0)