Skip to content

Commit

Permalink
2.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yfr committed Jan 25, 2024
1 parent 267b4ac commit b9733fa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 2.16.2 (2024-01-25)


#### Bug Fixes

* **Geosuggest:** fix input id and label for (#491) ([267b4ac4](https://github.com/ubilabs/react-geosuggest/commit/267b4ac4a200391d7cf295a1a5868d6b58fc9b85))


### 2.16.1 (2023-10-02)


Expand Down
4 changes: 2 additions & 2 deletions dist/react-geosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ var Geosuggest = (function (React) {
attributes.tabIndex = 0;
}
return (React__namespace.createElement(React__namespace.Fragment, null,
shouldRenderLabel && (React__namespace.createElement("label", { className: "geosuggest__label", htmlFor: this.props.id }, this.props.label)),
shouldRenderLabel && (React__namespace.createElement("label", { className: "geosuggest__label", htmlFor: "geosuggest__input".concat(this.props.id ? "--".concat(this.props.id) : '') }, this.props.label)),
React__namespace.createElement("input", __assign({ className: classes, id: "geosuggest__input".concat(this.props.id ? "--".concat(this.props.id) : ''), ref: function (i) { return (_this.input = i); }, type: this.props.inputType }, attributes, { value: this.props.value, style: this.props.style, onKeyDown: this.onInputKeyDown, onChange: this.onChange, onKeyPress: this.props.onKeyPress, onFocus: this.props.onFocus, onBlur: this.props.onBlur, role: "combobox", "aria-expanded": !this.props.isSuggestsHidden, "aria-activedescendant": this.props.activeSuggest
? this.props.activeSuggest.placeId
: // eslint-disable-next-line no-undefined
Expand Down Expand Up @@ -1380,7 +1380,7 @@ var Geosuggest = (function (React) {
});
var input = (React__namespace.createElement(Input, __assign({ className: this.props.inputClassName, ref: function (i) { return (_this.input = i); }, value: this.state.userInput, doNotSubmitOnEnter: !this.state.isSuggestsHidden, ignoreTab: this.props.ignoreTab, ignoreEnter: this.props.ignoreEnter, style: this.props.style && this.props.style.input, onChange: this.onInputChange, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onKeyDown: this.props.onKeyDown, onKeyPress: this.props.onKeyPress, inputType: this.props.inputType, onNext: this.onNext, onPrev: this.onPrev, onSelect: this.onSelect, onEscape: this.hideSuggests, isSuggestsHidden: this.state.isSuggestsHidden, activeSuggest: this.state.activeSuggest, label: this.props.label, id: this.props.id, listId: this.listId }, attributes)));
var suggestionsList = (React__namespace.createElement(SuggestList, { isHidden: this.state.isSuggestsHidden, style: this.props.style && this.props.style.suggests, suggestItemStyle: this.props.style && this.props.style.suggestItem, userInput: this.state.userInput, isHighlightMatch: Boolean(this.props.highlightMatch), suggestsClassName: this.props.suggestsClassName, suggestItemClassName: this.props.suggestItemClassName, suggests: this.state.suggests, hiddenClassName: this.props.suggestsHiddenClassName, suggestItemActiveClassName: this.props.suggestItemActiveClassName, activeSuggest: this.state.activeSuggest, onSuggestNoResults: this.onSuggestNoResults, onSuggestMouseDown: this.onSuggestMouseDown, onSuggestMouseOut: this.onSuggestMouseOut, onSuggestSelect: this.selectSuggest, renderSuggestItem: this.props.renderSuggestItem, listId: this.listId, listLabel: this.listLabel }));
return (React__namespace.createElement("div", { className: classes, id: this.props.id },
return (React__namespace.createElement("div", { className: classes, id: "geosuggest__wrapper".concat(this.props.id ? "--".concat(this.props.id) : '') },
React__namespace.createElement("div", { className: "geosuggest__input-wrapper" }, input),
React__namespace.createElement("div", { className: "geosuggest__suggests-wrapper" }, suggestionsList)));
};
Expand Down
Loading

0 comments on commit b9733fa

Please sign in to comment.