mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Add name to the location autocomplete input for better snapshots
This commit is contained in:
parent
513acb8ea2
commit
48095242ba
1 changed files with 3 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ class LocationAutocompleteInput extends Component {
|
|||
});
|
||||
}
|
||||
render() {
|
||||
const { onFocus, onBlur } = this.props.input;
|
||||
const { name, onFocus, onBlur } = this.props.input;
|
||||
const { search, predictions } = currentValue(this.props);
|
||||
|
||||
const handleOnFocus = e => {
|
||||
|
|
@ -276,6 +276,7 @@ class LocationAutocompleteInput extends Component {
|
|||
<input
|
||||
className={css.input}
|
||||
type="search"
|
||||
name={name}
|
||||
value={search}
|
||||
onFocus={handleOnFocus}
|
||||
onBlur={handleOnBlur}
|
||||
|
|
@ -304,6 +305,7 @@ class LocationAutocompleteInput extends Component {
|
|||
|
||||
LocationAutocompleteInput.propTypes = {
|
||||
input: shape({
|
||||
name: string.isRequired,
|
||||
value: shape({
|
||||
search: string,
|
||||
predictions: any,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue