diff --git a/packages/uui-input/lib/uui-input.element.ts b/packages/uui-input/lib/uui-input.element.ts index a5e3502fc..67f2587cb 100644 --- a/packages/uui-input/lib/uui-input.element.ts +++ b/packages/uui-input/lib/uui-input.element.ts @@ -407,7 +407,7 @@ export class UUIInputElement extends FormControlMixin( } private renderInputWithAutoWidth() { - html`
+ return html`
${this.renderInput()}${this.renderAutoWidthBackground()}
`; } diff --git a/packages/uui-input/lib/uui-input.story.ts b/packages/uui-input/lib/uui-input.story.ts index 1b5806f27..a40daac10 100644 --- a/packages/uui-input/lib/uui-input.story.ts +++ b/packages/uui-input/lib/uui-input.story.ts @@ -314,7 +314,7 @@ export const AutoWidth: Story = { .name=${props.name} .placeholder=${props.placeholder} .value=${props.value} - .autoWidth=${props.autoWidth}> + ?auto-width=${props.autoWidth}>

+ ?auto-width=${props.autoWidth}> + ?auto-width=${props.autoWidth}>