Skip to content

Commit 306e847

Browse files
committed
chore(release): version 2.17.0
1 parent 187a685 commit 306e847

5 files changed

+16
-7
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.17.0 (2025-01-08)
2+
3+
14
### 2.16.2 (2024-01-25)
25

36

dist/react-geosuggest.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,9 @@ var Geosuggest = (function (React) {
721721
}
722722
return (React__namespace.createElement(React__namespace.Fragment, null,
723723
shouldRenderLabel && (React__namespace.createElement("label", { className: "geosuggest__label", htmlFor: "geosuggest__input".concat(this.props.id ? "--".concat(this.props.id) : '') }, this.props.label)),
724-
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
724+
React__namespace.createElement("input", __assign({ className: classes, id: "geosuggest__input".concat(this.props.id ? "--".concat(this.props.id) : ''), ref: function (i) {
725+
_this.input = i;
726+
}, 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
725727
? this.props.activeSuggest.placeId
726728
: // eslint-disable-next-line no-undefined
727729
undefined, "aria-owns": this.props.listId }))));
@@ -856,7 +858,9 @@ var Geosuggest = (function (React) {
856858
else if (this.props.isHighlightMatch) {
857859
content = this.formatMatchedText(this.props.userInput, suggest);
858860
}
859-
return (React__namespace.createElement("li", { className: classes, ref: function (li) { return (_this.ref = li); }, style: this.props.style, onMouseDown: this.props.onMouseDown, onMouseOut: this.props.onMouseOut, onClick: this.onClick, role: "option", "aria-selected": this.props.isActive, id: suggest.placeId }, content));
861+
return (React__namespace.createElement("li", { className: classes, ref: function (li) {
862+
_this.ref = li;
863+
}, style: this.props.style, onMouseDown: this.props.onMouseDown, onMouseOut: this.props.onMouseOut, onClick: this.onClick, role: "option", "aria-selected": this.props.isActive, id: suggest.placeId }, content));
860864
};
861865
return SuggestItem;
862866
}(React__namespace.PureComponent));
@@ -1378,7 +1382,9 @@ var Geosuggest = (function (React) {
13781382
var classes = classnames('geosuggest', this.props.className, {
13791383
'geosuggest--loading': this.state.isLoading
13801384
});
1381-
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)));
1385+
var input = (React__namespace.createElement(Input, __assign({ className: this.props.inputClassName, ref: function (i) {
1386+
_this.input = i;
1387+
}, 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)));
13821388
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 }));
13831389
return (React__namespace.createElement("div", { className: classes, id: "geosuggest__wrapper".concat(this.props.id ? "--".concat(this.props.id) : '') },
13841390
React__namespace.createElement("div", { className: "geosuggest__input-wrapper" }, input),

0 commit comments

Comments
 (0)