@longline/aqua-ui 1.0.114 → 1.0.115

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.
@@ -73,6 +73,9 @@ var DateInputBase = function (props) {
73
73
  var handleToggle = function () {
74
74
  if (!open) {
75
75
  doOpen();
76
+ // Update popper position.
77
+ if (update)
78
+ update();
76
79
  }
77
80
  else {
78
81
  setOpen(false);
@@ -104,7 +107,7 @@ var DateInputBase = function (props) {
104
107
  },
105
108
  }
106
109
  ]
107
- }), styles = _c.styles, attributes = _c.attributes;
110
+ }), styles = _c.styles, attributes = _c.attributes, update = _c.update;
108
111
  return (React.createElement("div", { tabIndex: -1, className: props.className, onKeyDown: handleKeyDown, ref: wrapperRef },
109
112
  React.createElement(Selector, { value: value, disabled: props.disabled, ghost: props.ghost, transparent: props.transparent, error: props.error, clearable: props.clearable, noTabIndex: props.noTabIndex, onChange: handleChange, onClear: (!props.disabled && props.clearable && value != null) ? function () { return handleChange(null); } : null, onCalendar: handleToggle }),
110
113
  createPortal(React.createElement(Body, { ref: bodyRef, value: value, open: open, transparent: props.transparent, nofuture: props.nofuture, onSelect: handleSelect, styles: styles, attributes: attributes }), document.body)));
@@ -134,6 +134,9 @@ var DropdownBase = function (props) {
134
134
  // Open the dropdown.
135
135
  var doOpen = function () {
136
136
  setOpen(true);
137
+ // Update popper.
138
+ if (update)
139
+ update();
137
140
  // If reset on open is specified, then the search query is reset whenever the
138
141
  // dropdown opens or reopens.
139
142
  if (props.resetOnOpen)
@@ -392,7 +395,7 @@ var DropdownBase = function (props) {
392
395
  },
393
396
  sameWidth
394
397
  ]
395
- }), styles = _e.styles, attributes = _e.attributes;
398
+ }), styles = _e.styles, attributes = _e.attributes, update = _e.update;
396
399
  return (React.createElement("div", { className: props.className, tabIndex: props.disabled ? -1 : 0, ref: wrapperRef, onKeyDown: handleKeyDown, onClick: handleClickDropdown },
397
400
  React.createElement(Selector, { open: open, error: props.error, disabled: props.disabled, upwards: upwards, transparent: props.transparent, ghost: props.ghost, multiple: props.multiple, onClick: handleSelectorClicked, onClear: (props.clearable && !showPlaceholder) ? handleClear : null, placeholder: showPlaceholder }, label),
398
401
  createPortal(React.createElement(Body, { ref: bodyRef, open: open, transparent: props.transparent, maxItems: props.maxItems, onSearch: props.onSearch ? handleSearch : null, search: search, tall: props.tall, minBodyWidth: props.minBodyWidth, styles: styles, attributes: attributes }, children), document.body)));
@@ -53,9 +53,12 @@ var FilterBase = function (props) {
53
53
  },
54
54
  }
55
55
  ]
56
- }), styles = _b.styles, attributes = _b.attributes;
56
+ }), styles = _b.styles, attributes = _b.attributes, update = _b.update;
57
57
  var toggleOpen = function () {
58
58
  setOpen(!open);
59
+ // Update popper.
60
+ if (update)
61
+ update();
59
62
  };
60
63
  return (React.createElement("div", { className: props.className },
61
64
  React.createElement(FilterButton, { ref: buttonRef, active: props.active, open: open, onClick: toggleOpen }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longline/aqua-ui",
3
- "version": "1.0.114",
3
+ "version": "1.0.115",
4
4
  "description": "AquaUI",
5
5
  "author": "Alexander van Oostenrijk / Longline Environment",
6
6
  "license": "Commercial",