Skip to content

Commit 7e037bf

Browse files
committed
Fixed ReactstrapSelectInput to use FormFeedback for error messages instead of a <p> tag
1 parent 11a539f commit 7e037bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ReactstrapSelectInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import {FormGroup, Input, Label} from "reactstrap";
2+
import {FormFeedback, FormGroup, Input, Label} from "reactstrap";
33

44
/*let handleBlur = event => {
55
if (this.ignoreNextBlur === true) {
@@ -31,7 +31,7 @@ const ReactstrapSelectInput = ({
3131
return (<option value={option} key={index}>{option}</option>)
3232
})}
3333
</Input>
34-
{touch && error && <p>{error}</p>}
34+
{touch && error && <FormFeedback>{error}</FormFeedback>}
3535
</FormGroup>
3636
)
3737
};

0 commit comments

Comments
 (0)