Skip to content

Commit 862a452

Browse files
authored
refactor(ui5-color-palette-item): stableDomRef is obsolete (#3438)
The stableDomRef is meant for components that don't have a template on their own, but are pure elements, that the parent component renders (for example Select and Options). In this case the ColorPaletteItem is a component with own template and does not need to expose a special property like this to app developers to get its DOM ref as there is already getDomRef method that is sufficient. BREAKING_CHANGE: stableDomRef is removed, if you need to get the item's DOM ref, use getDomRef on the item instance.
1 parent 50a568b commit 862a452

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/main/src/ColorPaletteItem.js

-9
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ const metadata = {
2929
type: CSSColor,
3030
},
3131

32-
/**
33-
* Defines the stable selector that you can use via getStableDomRef method.
34-
* @type {String}
35-
* @public
36-
*/
37-
stableDomRef: {
38-
type: String,
39-
},
40-
4132
/**
4233
* Defines the tab-index of the element, helper information for the ItemNavigation.
4334
* @private

0 commit comments

Comments
 (0)