Skip to content

Commit

Permalink
support -readonly suffix on input-affix-wrapper (ant-design#24551)
Browse files Browse the repository at this point in the history
  • Loading branch information
morenyang authored May 29, 2020
1 parent 49533aa commit c353e8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/input/ClearableLabeledInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class ClearableLabeledInput extends React.Component<ClearableInputProps> {
allowClear,
direction,
style,
readOnly,
} = this.props;
const suffixNode = this.renderSuffix(prefixCls);
if (!hasPrefixSuffix(this.props)) {
Expand All @@ -118,6 +119,7 @@ class ClearableLabeledInput extends React.Component<ClearableInputProps> {
[`${prefixCls}-affix-wrapper-lg`]: size === 'large',
[`${prefixCls}-affix-wrapper-input-with-clear-btn`]: suffix && allowClear && value,
[`${prefixCls}-affix-wrapper-rtl`]: direction === 'rtl',
[`${prefixCls}-affix-wrapper-readonly`]: readOnly,
});
return (
<span
Expand Down

0 comments on commit c353e8b

Please sign in to comment.