@instructure/ui-drilldown 8.26.4-snapshot-6 → 8.26.4-snapshot-7

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
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [8.26.4-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-6) (2022-07-21)
6
+ ## [8.26.4-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-7) (2022-07-21)
7
7
 
8
8
 
9
9
  ### Features
@@ -243,7 +243,9 @@ let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
243
243
 
244
244
  this.handleOptionSelect = (event, _ref5) => {
245
245
  let id = _ref5.id;
246
- const selectedOption = this.getPageChildById(id);
246
+ const selectedOption = this.getPageChildById(id); // TODO: this line can be removed when React 16 is no longer supported
247
+
248
+ event.persist();
247
249
 
248
250
  if (!id || !selectedOption || selectedOption.props.disabled || event.target.getAttribute('disabled') || event.target.getAttribute('aria-disabled')) {
249
251
  event.preventDefault();
@@ -259,7 +259,9 @@ let Drilldown = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
259
259
 
260
260
  this.handleOptionSelect = (event, _ref5) => {
261
261
  let id = _ref5.id;
262
- const selectedOption = this.getPageChildById(id);
262
+ const selectedOption = this.getPageChildById(id); // TODO: this line can be removed when React 16 is no longer supported
263
+
264
+ event.persist();
263
265
 
264
266
  if (!id || !selectedOption || selectedOption.props.disabled || event.target.getAttribute('disabled') || event.target.getAttribute('aria-disabled')) {
265
267
  event.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-drilldown",
3
- "version": "8.26.4-snapshot-6",
3
+ "version": "8.26.4-snapshot-7",
4
4
  "description": "A drilldown menu component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,28 +24,28 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.13.10",
27
- "@instructure/console": "8.26.4-snapshot-6",
28
- "@instructure/emotion": "8.26.4-snapshot-6",
29
- "@instructure/shared-types": "8.26.4-snapshot-6",
30
- "@instructure/ui-dom-utils": "8.26.4-snapshot-6",
31
- "@instructure/ui-icons": "8.26.4-snapshot-6",
32
- "@instructure/ui-options": "8.26.4-snapshot-6",
33
- "@instructure/ui-popover": "8.26.4-snapshot-6",
34
- "@instructure/ui-position": "8.26.4-snapshot-6",
35
- "@instructure/ui-prop-types": "8.26.4-snapshot-6",
36
- "@instructure/ui-react-utils": "8.26.4-snapshot-6",
37
- "@instructure/ui-selectable": "8.26.4-snapshot-6",
38
- "@instructure/ui-testable": "8.26.4-snapshot-6",
39
- "@instructure/ui-utils": "8.26.4-snapshot-6",
40
- "@instructure/ui-view": "8.26.4-snapshot-6",
27
+ "@instructure/console": "8.26.4-snapshot-7",
28
+ "@instructure/emotion": "8.26.4-snapshot-7",
29
+ "@instructure/shared-types": "8.26.4-snapshot-7",
30
+ "@instructure/ui-dom-utils": "8.26.4-snapshot-7",
31
+ "@instructure/ui-icons": "8.26.4-snapshot-7",
32
+ "@instructure/ui-options": "8.26.4-snapshot-7",
33
+ "@instructure/ui-popover": "8.26.4-snapshot-7",
34
+ "@instructure/ui-position": "8.26.4-snapshot-7",
35
+ "@instructure/ui-prop-types": "8.26.4-snapshot-7",
36
+ "@instructure/ui-react-utils": "8.26.4-snapshot-7",
37
+ "@instructure/ui-selectable": "8.26.4-snapshot-7",
38
+ "@instructure/ui-testable": "8.26.4-snapshot-7",
39
+ "@instructure/ui-utils": "8.26.4-snapshot-7",
40
+ "@instructure/ui-view": "8.26.4-snapshot-7",
41
41
  "prop-types": "^15"
42
42
  },
43
43
  "devDependencies": {
44
- "@instructure/ui-babel-preset": "8.26.4-snapshot-6",
45
- "@instructure/ui-color-utils": "8.26.4-snapshot-6",
46
- "@instructure/ui-test-locator": "8.26.4-snapshot-6",
47
- "@instructure/ui-test-utils": "8.26.4-snapshot-6",
48
- "@instructure/ui-themes": "8.26.4-snapshot-6"
44
+ "@instructure/ui-babel-preset": "8.26.4-snapshot-7",
45
+ "@instructure/ui-color-utils": "8.26.4-snapshot-7",
46
+ "@instructure/ui-test-locator": "8.26.4-snapshot-7",
47
+ "@instructure/ui-test-utils": "8.26.4-snapshot-7",
48
+ "@instructure/ui-themes": "8.26.4-snapshot-7"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=16.8 <=18"
@@ -754,6 +754,9 @@ class Drilldown extends Component<DrilldownProps, DrilldownState> {
754
754
  ) => {
755
755
  const selectedOption = this.getPageChildById(id)
756
756
 
757
+ // TODO: this line can be removed when React 16 is no longer supported
758
+ event.persist()
759
+
757
760
  if (
758
761
  !id ||
759
762
  !selectedOption ||