Skip to content

Commit

Permalink
small bugfix for auto width not rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
loivsen committed Sep 19, 2023
1 parent e6a2cd8 commit 734f7ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/uui-input/lib/uui-input.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export class UUIInputElement extends FormControlMixin(
}

private renderInputWithAutoWidth() {
html`<div id="control">
return html`<div id="control">
${this.renderInput()}${this.renderAutoWidthBackground()}
</div>`;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/uui-input/lib/uui-input.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export const AutoWidth: Story = {
.name=${props.name}
.placeholder=${props.placeholder}
.value=${props.value}
.autoWidth=${props.autoWidth}>
?auto-width=${props.autoWidth}>
</uui-input>
<br /><br />
<uui-input
Expand All @@ -329,11 +329,11 @@ export const AutoWidth: Story = {
.name=${props.name}
.placeholder=${props.placeholder}
.value=${props.value}
.autoWidth=${props.autoWidth}>
?auto-width=${props.autoWidth}>
<uui-input
slot="prepend"
placeholder="Prepend auto-width"
.autoWidth=${props.autoWidth}></uui-input>
?auto-width=${props.autoWidth}></uui-input>
<uui-input
slot="append"
placeholder="Append auto-width false"></uui-input>
Expand Down

0 comments on commit 734f7ba

Please sign in to comment.