@veracity/vui 2.10.0-beta.2 → 2.10.0-beta.3

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.
@@ -20,7 +20,7 @@ const options = {
20
20
  /** Wrapper for the autocomplete popover. */
21
21
  const AutoCompletePopover = ({ autoCompleteOptions, autoCompleteMaxHeight, children, filterAutoCompleteOptions, onAutoCompleteSelect }) => {
22
22
  var _a;
23
- if (!(autoCompleteOptions === null || autoCompleteOptions === void 0 ? void 0 : autoCompleteOptions.length))
23
+ if (autoCompleteOptions === undefined)
24
24
  return children;
25
25
  return (react_1.default.createElement(popover_1.Popover, { options: options, placement: "bottom-start" },
26
26
  react_1.default.createElement(popover_1.Popover.Trigger, { as: InputContainer, className: (0, utils_1.cs)('vui-input-popoverTrigger') }, children),
@@ -13,7 +13,7 @@ const options = {
13
13
  };
14
14
  /** Wrapper for the autocomplete popover. */
15
15
  export const AutoCompletePopover = ({ autoCompleteOptions, autoCompleteMaxHeight, children, filterAutoCompleteOptions, onAutoCompleteSelect }) => {
16
- if (!autoCompleteOptions?.length)
16
+ if (autoCompleteOptions === undefined)
17
17
  return children;
18
18
  return (React.createElement(Popover, { options: options, placement: "bottom-start" },
19
19
  React.createElement(Popover.Trigger, { as: InputContainer, className: cs('vui-input-popoverTrigger') }, children),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veracity/vui",
3
- "version": "2.10.0-beta.2",
3
+ "version": "2.10.0-beta.3",
4
4
  "description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
5
5
  "module": "./dist/esm/index.js",
6
6
  "main": "./dist/cjs/index.js",
@@ -24,7 +24,7 @@ export const AutoCompletePopover = ({
24
24
  filterAutoCompleteOptions,
25
25
  onAutoCompleteSelect
26
26
  }: AutoCompletePopoverProps) => {
27
- if (!autoCompleteOptions?.length) return children
27
+ if (autoCompleteOptions === undefined) return children
28
28
 
29
29
  return (
30
30
  <Popover options={options} placement="bottom-start">