Skip to content

Commit

Permalink
Merge pull request openshift#7504 from bipuladh/fix_trailing_whitespace
Browse files Browse the repository at this point in the history
Bug 1888544: Trim user provided name for OBC before attempting creation
  • Loading branch information
openshift-merge-robot authored Dec 10, 2020
2 parents 5727545 + 1f544e8 commit ae59aa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const CreateOBCPage: React.FC<CreateOBCPageProps> = (props) => {
<input
className="pf-c-form-control"
type="text"
onChange={(e) => dispatch({ type: 'setName', name: e.currentTarget.value })}
onChange={(e) => dispatch({ type: 'setName', name: e.currentTarget.value.trim() })}
placeholder={t('noobaa-storage-plugin~my-object-bucket')}
aria-describedby="obc-name-help"
id="obc-name"
Expand Down

0 comments on commit ae59aa0

Please sign in to comment.