Skip to content

Commit 85528e9

Browse files
committed
fix(uui-input): treat autoWidth as bool attribute
1 parent bf80c02 commit 85528e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/uui-input/lib/uui-input.element.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,9 @@ export class UUIInputElement extends FormControlMixin(
275275
* Sets the input width to fit the value or placeholder if empty
276276
* @type {boolean}
277277
* @attr
278-
* @default undefined
279278
*/
280279
@property({ type: Boolean, reflect: true, attribute: 'auto-width' })
281-
autoWidth?: boolean;
280+
autoWidth = false;
282281

283282
/**
284283
* This property specifies the type of input that will be rendered.

0 commit comments

Comments
 (0)