@pingux/astro 2.144.0 → 2.144.1-alpha.0

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.
@@ -298,6 +298,7 @@ test('two listbox can not be open at the same time', function () {
298
298
  name: 'Alpha'
299
299
  })).toBeInTheDocument();
300
300
  _userEvent["default"].click(button2);
301
+ _userEvent["default"].click(button2);
301
302
  expect(_testWrapper.screen.queryByRole('listbox')).toBeInTheDocument();
302
303
  expect(_testWrapper.screen.queryAllByRole('option')).toHaveLength(3);
303
304
  expect(_testWrapper.screen.queryByRole('option', {
@@ -185,6 +185,8 @@ var useSelectField = function useSelectField(props, ref) {
185
185
  // trigger when the popup is closed. In addition, add hidden
186
186
  // <DismissButton> components at the start and end of the list
187
187
  // to allow screen reader users to dismiss the popup easily.
188
+
189
+ /* istanbul ignore next */
188
190
  var listbox = (0, _react2.jsx)(_reactAria.FocusScope, {
189
191
  restoreFocus: true
190
192
  }, (0, _react2.jsx)(_reactAria.DismissButton, {
@@ -204,8 +206,13 @@ var useSelectField = function useSelectField(props, ref) {
204
206
  return state.close();
205
207
  }
206
208
  }));
209
+
210
+ /*
211
+ Removed the isNonModal prop from Popover as per UIP-7854,
212
+ to ensure the dropdown closes when clicking outside.
213
+ */
214
+
207
215
  var overlay = (0, _react2.jsx)(_Popover["default"], {
208
- isNonModal: true,
209
216
  triggerRef: triggerRef,
210
217
  style: style,
211
218
  state: state
@@ -291,6 +291,7 @@ test('two listbox can not be open at the same time', function () {
291
291
  name: 'Alpha'
292
292
  })).toBeInTheDocument();
293
293
  userEvent.click(button2);
294
+ userEvent.click(button2);
294
295
  expect(screen.queryByRole('listbox')).toBeInTheDocument();
295
296
  expect(screen.queryAllByRole('option')).toHaveLength(3);
296
297
  expect(screen.queryByRole('option', {
@@ -174,6 +174,8 @@ var useSelectField = function useSelectField(props, ref) {
174
174
  // trigger when the popup is closed. In addition, add hidden
175
175
  // <DismissButton> components at the start and end of the list
176
176
  // to allow screen reader users to dismiss the popup easily.
177
+
178
+ /* istanbul ignore next */
177
179
  var listbox = ___EmotionJSX(FocusScope, {
178
180
  restoreFocus: true
179
181
  }, ___EmotionJSX(DismissButton, {
@@ -193,8 +195,13 @@ var useSelectField = function useSelectField(props, ref) {
193
195
  return state.close();
194
196
  }
195
197
  }));
198
+
199
+ /*
200
+ Removed the isNonModal prop from Popover as per UIP-7854,
201
+ to ensure the dropdown closes when clicking outside.
202
+ */
203
+
196
204
  var overlay = ___EmotionJSX(Popover, {
197
- isNonModal: true,
198
205
  triggerRef: triggerRef,
199
206
  style: style,
200
207
  state: state
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.144.0",
3
+ "version": "2.144.1-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",