Skip to content

Commit 07dc2ed

Browse files
fix: Improve HTML validity of internal inputs in TextFilter (#658)
1 parent 5609551 commit 07dc2ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/input/internal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function InternalInput(
183183
}, [__useReactAutofocus, autoFocusEnabled]);
184184

185185
return (
186-
<div {...baseProps} className={clsx(baseProps.className, styles['input-container'])} ref={__internalRootRef}>
186+
<span {...baseProps} className={clsx(baseProps.className, styles['input-container'])} ref={__internalRootRef}>
187187
{__leftIcon && (
188188
<span onClick={__onLeftIconClick} className={iconClassName('left', !!__onLeftIconClick)}>
189189
<InternalIcon name={__leftIcon} variant={disabled ? 'disabled' : __leftIconVariant} />
@@ -199,7 +199,7 @@ function InternalInput(
199199
<InternalIcon name={__rightIcon} variant={disabled ? 'disabled' : __rightIconVariant} />
200200
</span>
201201
)}
202-
</div>
202+
</span>
203203
);
204204
}
205205

0 commit comments

Comments
 (0)