diff --git a/src/components/ConfigCover.js b/src/components/ConfigCover.js index abaea2b..2645b42 100644 --- a/src/components/ConfigCover.js +++ b/src/components/ConfigCover.js @@ -41,7 +41,12 @@ class ConfigCover extends React.Component { getRandomTheme = (theme, Pattern) => { this.setState({ bgColor: theme.bgColor, borderColor: theme.bdColor, pattern: Pattern }); } - + //this function will set the max border value to 50 if user types a value greater than 50 + maxBorderValidationCheck = (e) => { + if(e.target.value > 50) { + e.target.value = 50; + } + } render() { return (