@atlaskit/user-picker 10.0.1 → 10.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`edc295b63a2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/edc295b63a2) - [ux] Fixes bug where the user picker opens the menu on click, but doesn't reopen the menu on the second click.
8
+
3
9
  ## 10.0.1
4
10
 
5
11
  ### Patch Changes
@@ -247,6 +247,11 @@ var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
247
247
  options: []
248
248
  });
249
249
  });
250
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleOpen", function () {
251
+ _this.setState({
252
+ menuIsOpen: true
253
+ });
254
+ });
250
255
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleClose", function () {
251
256
  _this.resetInputState();
252
257
  (0, _utils.callCallback)(_this.props.onClose, _this.getSessionId());
@@ -474,6 +479,7 @@ var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
474
479
  instanceId: fieldId,
475
480
  inputId: inputId,
476
481
  onChange: this.handleChange,
482
+ onMenuOpen: this.handleOpen,
477
483
  onFocus: this.handleFocus,
478
484
  onBlur: this.handleBlur,
479
485
  onMenuClose: this.handleClose,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -235,6 +235,11 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
235
235
  options: []
236
236
  });
237
237
  });
238
+ _defineProperty(this, "handleOpen", () => {
239
+ this.setState({
240
+ menuIsOpen: true
241
+ });
242
+ });
238
243
  _defineProperty(this, "handleClose", () => {
239
244
  this.resetInputState();
240
245
  callCallback(this.props.onClose, this.getSessionId());
@@ -456,6 +461,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
456
461
  instanceId: fieldId,
457
462
  inputId: inputId,
458
463
  onChange: this.handleChange,
464
+ onMenuOpen: this.handleOpen,
459
465
  onFocus: this.handleFocus,
460
466
  onBlur: this.handleBlur,
461
467
  onMenuClose: this.handleClose,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -240,6 +240,11 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
240
240
  options: []
241
241
  });
242
242
  });
243
+ _defineProperty(_assertThisInitialized(_this), "handleOpen", function () {
244
+ _this.setState({
245
+ menuIsOpen: true
246
+ });
247
+ });
243
248
  _defineProperty(_assertThisInitialized(_this), "handleClose", function () {
244
249
  _this.resetInputState();
245
250
  callCallback(_this.props.onClose, _this.getSessionId());
@@ -467,6 +472,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
467
472
  instanceId: fieldId,
468
473
  inputId: inputId,
469
474
  onChange: this.handleChange,
475
+ onMenuOpen: this.handleOpen,
470
476
  onFocus: this.handleFocus,
471
477
  onBlur: this.handleBlur,
472
478
  onMenuClose: this.handleClose,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -39,6 +39,7 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
39
39
  private handleFocus;
40
40
  private resetInputState;
41
41
  private handleBlur;
42
+ private handleOpen;
42
43
  private handleClose;
43
44
  private handleInputChange;
44
45
  private fireEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,13 +29,13 @@
29
29
  "@atlaskit/analytics-next": "^8.2.0",
30
30
  "@atlaskit/avatar": "^21.1.0",
31
31
  "@atlaskit/icon": "^21.11.0",
32
- "@atlaskit/logo": "^13.10.0",
32
+ "@atlaskit/logo": "^13.11.0",
33
33
  "@atlaskit/lozenge": "^11.3.0",
34
34
  "@atlaskit/popper": "^5.4.0",
35
35
  "@atlaskit/select": "^16.1.0",
36
36
  "@atlaskit/spinner": "^15.3.0",
37
37
  "@atlaskit/theme": "^12.2.0",
38
- "@atlaskit/tokens": "^1.0.0",
38
+ "@atlaskit/tokens": "^1.1.0",
39
39
  "@atlaskit/tooltip": "^17.6.0",
40
40
  "@atlaskit/ufo": "^0.1.0",
41
41
  "@babel/runtime": "^7.0.0",