@constructor-io/constructorio-ui-autocomplete
Advanced tools
Comparing version 1.23.2 to 1.23.3
@@ -119,2 +119,4 @@ "use strict"; | ||
const isEnter = code === 'Enter' || key === 'Enter'; | ||
const isHome = code === 'Home' || key === 'Home'; | ||
const isEnd = code === 'End' || key === 'End'; | ||
const isUserInput = highlightedIndex < 0; | ||
@@ -133,3 +135,3 @@ if (isOpen && isEnter && isUserInput && (query === null || query === void 0 ? void 0 : query.length)) { | ||
} | ||
if (code === 'Home' || code === 'End') { | ||
if (isHome || isEnd) { | ||
// eslint-disable-next-line no-param-reassign | ||
@@ -136,0 +138,0 @@ nativeEvent.preventDownshiftDefault = true; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = '1.23.2'; | ||
exports.default = '1.23.3'; |
@@ -128,2 +128,4 @@ 'use client'; | ||
const isEnter = code === 'Enter' || key === 'Enter'; | ||
const isHome = code === 'Home' || key === 'Home'; | ||
const isEnd = code === 'End' || key === 'End'; | ||
const isUserInput = highlightedIndex < 0; | ||
@@ -142,3 +144,3 @@ if (isOpen && isEnter && isUserInput && query?.length) { | ||
} | ||
if (code === 'Home' || code === 'End') { | ||
if (isHome || isEnd) { | ||
// eslint-disable-next-line no-param-reassign | ||
@@ -145,0 +147,0 @@ nativeEvent.preventDownshiftDefault = true; |
@@ -1,1 +0,1 @@ | ||
export default '1.23.2'; | ||
export default '1.23.3'; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "1.23.2"; | ||
declare const _default: "1.23.3"; | ||
export default _default; |
{ | ||
"name": "@constructor-io/constructorio-ui-autocomplete", | ||
"version": "1.23.2", | ||
"version": "1.23.3", | ||
"description": "Constructor.io Autocomplete UI library for web applications", | ||
@@ -67,9 +67,9 @@ "main": "lib/cjs/index.js", | ||
"@cspell/eslint-plugin": "^6.18.1", | ||
"@storybook/addon-a11y": "^7.6.6", | ||
"@storybook/addon-actions": "^7.6.6", | ||
"@storybook/addon-essentials": "^7.6.6", | ||
"@storybook/addon-interactions": "^7.6.6", | ||
"@storybook/addon-links": "^7.6.6", | ||
"@storybook/addon-a11y": "^7.6.20", | ||
"@storybook/addon-actions": "^7.6.20", | ||
"@storybook/addon-essentials": "^7.6.20", | ||
"@storybook/addon-interactions": "^7.6.20", | ||
"@storybook/addon-links": "^7.6.20", | ||
"@storybook/jest": "^0.2.3", | ||
"@storybook/react-webpack5": "7.6.6", | ||
"@storybook/react-webpack5": "^7.6.20", | ||
"@storybook/test-runner": "^0.16.0", | ||
@@ -102,3 +102,3 @@ "@storybook/testing-library": "^0.1.0", | ||
"start-server-and-test": "^2.0.3", | ||
"storybook": "^7.6.6", | ||
"storybook": "^7.6.20", | ||
"ts-jest": "^29.1.5", | ||
@@ -105,0 +105,0 @@ "typescript": "^4.8.3", |
Sorry, the diff of this file is too big to display
488675
4808