Skip to content

Commit

Permalink
Fix #6160: InputText className listed twice
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Mar 15, 2024
1 parent 07f227d commit e224a48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/lib/hooks/useDisplayOrder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { UniqueComponentId } from '../utils/Utils';
import { ObjectUtils, UniqueComponentId } from '../utils/Utils';

const groupToDisplayedElements = {};

Expand Down
4 changes: 2 additions & 2 deletions components/lib/inputtext/InputText.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useHandleStyle } from '../componentbase/ComponentBase';
import { useMergeProps } from '../hooks/Hooks';
import { KeyFilter } from '../keyfilter/KeyFilter';
import { Tooltip } from '../tooltip/Tooltip';
import { DomHandler, ObjectUtils, classNames } from '../utils/Utils';
import { DomHandler, ObjectUtils } from '../utils/Utils';
import { InputTextBase } from './InputTextBase';

export const InputText = React.memo(
Expand Down Expand Up @@ -71,7 +71,7 @@ export const InputText = React.memo(

const rootProps = mergeProps(
{
className: classNames(props.className, cx('root', { isFilled })),
className: cx('root', { isFilled }),
onBeforeInput: onBeforeInput,
onInput: onInput,
onKeyDown: onKeyDown,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`InputText when input has className only 1 className is printed 1`] = `
<div>
<input
class="jest p-inputtext p-component p-filled"
class="p-inputtext p-component jest p-filled"
data-pc-name="inputtext"
data-pc-section="root"
/>
Expand Down

0 comments on commit e224a48

Please sign in to comment.