react-instantsearch 7.13.1 → 7.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/ui/Menu.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Menu = Menu;
|
|
7
7
|
var _instantsearchUiComponents = require("instantsearch-ui-components");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _isModifierClick = require("./lib/isModifierClick");
|
|
9
10
|
var _ShowMoreButton = require("./ShowMoreButton");
|
|
10
11
|
var _excluded = ["items", "classNames", "showMore", "canToggleShowMore", "onToggleShowMore", "isShowingMore", "createURL", "onRefine", "translations"];
|
|
11
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -36,6 +37,9 @@ function Menu(_ref) {
|
|
|
36
37
|
className: (0, _instantsearchUiComponents.cx)('ais-Menu-link', classNames.link),
|
|
37
38
|
href: createURL(item.value),
|
|
38
39
|
onClick: function onClick(event) {
|
|
40
|
+
if ((0, _isModifierClick.isModifierClick)(event)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
39
43
|
event.preventDefault();
|
|
40
44
|
onRefine(item);
|
|
41
45
|
}
|
package/dist/es/ui/Menu.js
CHANGED
|
@@ -4,6 +4,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import { cx } from 'instantsearch-ui-components';
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import { isModifierClick } from "./lib/isModifierClick.js";
|
|
7
8
|
import { ShowMoreButton } from "./ShowMoreButton.js";
|
|
8
9
|
export function Menu(_ref) {
|
|
9
10
|
var items = _ref.items,
|
|
@@ -29,6 +30,9 @@ export function Menu(_ref) {
|
|
|
29
30
|
className: cx('ais-Menu-link', classNames.link),
|
|
30
31
|
href: createURL(item.value),
|
|
31
32
|
onClick: function onClick(event) {
|
|
33
|
+
if (isModifierClick(event)) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
32
36
|
event.preventDefault();
|
|
33
37
|
onRefine(item);
|
|
34
38
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
var React__default = 'default' in React ? React['default'] : React;
|
|
9
9
|
|
|
10
|
-
var version = '7.13.
|
|
10
|
+
var version = '7.13.2';
|
|
11
11
|
|
|
12
12
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
13
13
|
//
|
|
@@ -13092,7 +13092,7 @@
|
|
|
13092
13092
|
};
|
|
13093
13093
|
}
|
|
13094
13094
|
|
|
13095
|
-
var version$3 = '4.74.
|
|
13095
|
+
var version$3 = '4.74.2';
|
|
13096
13096
|
|
|
13097
13097
|
function _typeof$q(obj) {
|
|
13098
13098
|
"@babel/helpers - typeof";
|
|
@@ -22037,6 +22037,9 @@
|
|
|
22037
22037
|
className: cx('ais-Menu-link', classNames.link),
|
|
22038
22038
|
href: createURL(item.value),
|
|
22039
22039
|
onClick: function onClick(event) {
|
|
22040
|
+
if (isModifierClick(event)) {
|
|
22041
|
+
return;
|
|
22042
|
+
}
|
|
22040
22043
|
event.preventDefault();
|
|
22041
22044
|
onRefine(item);
|
|
22042
22045
|
}
|