Skip to content

Commit

Permalink
fix(comp:input): input theme hashId isn't correctly bound (#1863)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Mar 25, 2024
1 parent 0fb6a22 commit bf11379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/_private/input/src/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default defineComponent({
const prefixCls = mergedPrefixCls.value
return normalizeClass({
[prefixCls]: true,
[globalHashId.value]: !!globalHashId.value,
[`${prefixCls}-${size}`]: true,
[`${prefixCls}-${status}`]: !!status,
[`${prefixCls}-borderless`]: borderless,
Expand Down Expand Up @@ -65,7 +66,7 @@ export default defineComponent({
}

const { class: className, style, ...rest } = attrs
const classNames = normalizeClass([classes.value, className, globalHashId.value])
const classNames = normalizeClass([classes.value, className])
const inputNode = <input ref={inputRef} class={`${prefixCls}-inner`} disabled={disabled} {...rest} />

if (!(addonBeforeNode || addonAfterNode)) {
Expand Down

0 comments on commit bf11379

Please sign in to comment.