Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed May 7, 2022
2 parents 0d4b020 + ae65953 commit b8023ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/MTableFilterRow/DefaultFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ function DefaultFilter({
return (
<TextField
ref={forwardedRef}
style={columnDef.type === 'numeric' ? { float: 'right' } : {}}
style={
columnDef.type === 'numeric'
? { float: columnDef.align ?? 'right' }
: { float: columnDef.align ?? 'left' }
}
type={columnDef.type === 'numeric' ? 'number' : 'search'}
value={columnDef.tableData.filterValue || ''}
placeholder={getLocalizedFilterPlaceHolder(columnDef)}
Expand Down

0 comments on commit b8023ea

Please sign in to comment.