Skip to content

Commit

Permalink
Merge pull request #158 from ECN/bugfix-filter-label-overflow
Browse files Browse the repository at this point in the history
Refactored ItemTableFilter to address label overflow bug when filter had a value
  • Loading branch information
campb303 authored Feb 8, 2021
2 parents 1145f3b + e2c00d1 commit ca62502
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ItemTableFilter/ItemTableFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export default function ItemTableFilter({ label, onChange }) {
});
const classes = useStyles();

// The FormControl is wrapped in a box with overflowX=hidden to prevent the
// InputLabel text from going outside its textfield.
// See: https://github.itap.purdue.edu/ECN/webqueue2/issues/156
return (
<Box classes={{ root: classes.filterContainer }} >
<FormControl
Expand Down Expand Up @@ -39,4 +42,4 @@ ItemTableFilter.propTypes = {

ItemTableFilter.defaultProps = {
"label": ""
}
}

0 comments on commit ca62502

Please sign in to comment.