Skip to content

Commit

Permalink
Remove classname from inputtextbase
Browse files Browse the repository at this point in the history
  • Loading branch information
gucal committed Apr 8, 2024
1 parent 4ed1cdf commit e1b9667
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions components/lib/inputtext/InputTextBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ import { classNames } from '../utils/Utils';

const classes = {
root: ({ props, isFilled, context }) =>
classNames(
'p-inputtext p-component',
{
'p-disabled': props.disabled,
'p-filled': isFilled,
'p-invalid': props.invalid,
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
},

props.className
)
classNames('p-inputtext p-component', {
'p-disabled': props.disabled,
'p-filled': isFilled,
'p-invalid': props.invalid,
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
})
};

export const InputTextBase = ComponentBase.extend({
Expand Down

0 comments on commit e1b9667

Please sign in to comment.