Skip to content

Commit 8eee828

Browse files
committed
fix in prop service
1 parent 18f7f3d commit 8eee828

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/designer/AttachedPropertiesService.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { BaseCustomWebComponentPropertiesService, IDesignItem, IProperty, PropertyType } from "@node-projects/web-component-designer";
1+
import { IDesignItem, IProperty, PropertyType } from "@node-projects/web-component-designer";
22
import { TabWebcomponent } from "../tab/TabWebcomponent.js";
3+
import { AbstractPolymerLikePropertiesService } from "@node-projects/web-component-designer/dist/elements/services/propertiesService/services/AbstractPolymerLikePropertiesService.js";
34

4-
export default class AttachedPropertiesService extends BaseCustomWebComponentPropertiesService {
5+
export default class AttachedPropertiesService extends AbstractPolymerLikePropertiesService {
56
override isHandledElement(designItem: IDesignItem): boolean {
67
return designItem.parent?.element instanceof TabWebcomponent;
78
}
@@ -15,4 +16,8 @@ export default class AttachedPropertiesService extends BaseCustomWebComponentPro
1516
propertyType: PropertyType.propertyAndAttribute
1617
}];
1718
}
19+
20+
protected override _notifyChangedProperty(designItem: IDesignItem, property: IProperty, value: any) {
21+
(<TabWebcomponent>designItem.parent?.element)._refreshContent();
22+
};
1823
}

0 commit comments

Comments
 (0)