Skip to content

Commit a5ef7b4

Browse files
committed
make position property internal
1 parent ab96ee6 commit a5ef7b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/uui-button-inline-create/lib/uui-button-inline-create.element.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class UUIButtonInlineCreateElement extends LitElement {
174174
];
175175

176176
@state()
177-
position = 0;
177+
private _position = 0;
178178

179179
/**
180180
* Label to be used for aria-label and eventually as visual label
@@ -193,7 +193,7 @@ export class UUIButtonInlineCreateElement extends LitElement {
193193
vertical = false;
194194

195195
private _onMouseMove(e: MouseEvent) {
196-
this.position = this.vertical ? e.offsetY : e.offsetX;
196+
this._position = this.vertical ? e.offsetY : e.offsetX;
197197
}
198198

199199
private _handleClick(e: MouseEvent) {
@@ -215,8 +215,8 @@ export class UUIButtonInlineCreateElement extends LitElement {
215215
<div
216216
id="plus"
217217
style=${styleMap({
218-
left: this.vertical ? '' : this.position + 'px',
219-
top: this.vertical ? this.position + 'px' : '',
218+
left: this.vertical ? '' : this._position + 'px',
219+
top: this.vertical ? this._position + 'px' : '',
220220
})}>
221221
<svg
222222
id="plus-icon"

0 commit comments

Comments
 (0)