Skip to content

Commit

Permalink
💄 use classNames in Editable
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 6, 2019
1 parent 4146efa commit fb68fcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/typography/Editable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import KeyCode from 'rc-util/lib/KeyCode';
import classNames from 'classnames';
import { polyfill } from 'react-lifecycles-compat';
import Icon from '../icon';
import TextArea from '../input/TextArea';
Expand Down Expand Up @@ -114,7 +115,7 @@ class Editable extends React.Component<EditableProps, EditableState> {
const { prefixCls, 'aria-label': ariaLabel, className, style } = this.props;

return (
<div className={`${prefixCls} ${prefixCls}-edit-content ${className}`} style={style}>
<div className={classNames(prefixCls, `${prefixCls}-edit-content`, className)} style={style}>
<TextArea
ref={this.setTextarea}
value={current}
Expand Down

0 comments on commit fb68fcd

Please sign in to comment.