Skip to content

Commit c9a9b87

Browse files
authored
Merge pull request #370 from seatable/fix-text-formatter
fix(text-formatter): just display link style if is phone number column
2 parents 9261421 + 22eb3aa commit c9a9b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RowExpandFormatter/text/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class TextFormatter extends React.Component {
2626

2727
render() {
2828
const { containerClassName, value, column } = this.props;
29-
const classname = classnames('dtable-ui cell-formatter-container row-expand-jump-link-container text-formatter', containerClassName);
30-
const formattedValue = this.getFormattedValue(value);
3129
const isDisplayAsAsPhoneNumber = column ? checkIsDisplayAsPhoneNumberColumn(column) : false;
30+
const classname = classnames('dtable-ui cell-formatter-container text-formatter', containerClassName, { 'row-expand-jump-link-container': isDisplayAsAsPhoneNumber });
31+
const formattedValue = this.getFormattedValue(value);
3232
return (
3333
<div className={classname}>
3434
<span className="text-formatter-value row-expand-jump-link-value text-truncate">{formattedValue}</span>

0 commit comments

Comments
 (0)