@onesy/ui-react 1.0.15 → 1.0.16

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.
@@ -471,7 +471,7 @@ const SmartTextField = react_1.default.forwardRef((props_, ref) => {
471
471
  if (mention) {
472
472
  if (refs.openMenu.current && !optionsMention.length)
473
473
  onCloseSearch();
474
- else if (!refs.openMenu.current && !!optionsMention.length)
474
+ else if (!refs.openMenu.current && refs.search.current && !!optionsMention.length)
475
475
  onOpenSearch();
476
476
  }
477
477
  }, [mention, optionsMention]);
@@ -491,7 +491,7 @@ const SmartTextField = /*#__PURE__*/React.forwardRef((props_, ref) => {
491
491
  // else if no users response & opened, close the search
492
492
  React.useEffect(() => {
493
493
  if (mention) {
494
- if (refs.openMenu.current && !optionsMention.length) onCloseSearch();else if (!refs.openMenu.current && !!optionsMention.length) onOpenSearch();
494
+ if (refs.openMenu.current && !optionsMention.length) onCloseSearch();else if (!refs.openMenu.current && refs.search.current && !!optionsMention.length) onOpenSearch();
495
495
  }
496
496
  }, [mention, optionsMention]);
497
497
  React.useEffect(() => {
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.15
1
+ /** @license UiReact v1.0.16
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-org/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",