@instructure/ui-drilldown 8.47.1-snapshot-1 → 8.47.1-snapshot-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 +5 -2
- package/es/Drilldown/index.js +1 -1
- package/lib/Drilldown/index.js +1 -1
- package/package.json +20 -20
- package/src/Drilldown/index.tsx +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
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.47.1-snapshot-
|
|
6
|
+
## [8.47.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v8.47.0...v8.47.1-snapshot-2) (2023-11-03)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-drilldown:** fix cmd+click not working on drilldown items ([10e53ff](https://github.com/instructure/instructure-ui/commit/10e53ff8960885a09e5626d95eabbb6590526f52))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/Drilldown/index.js
CHANGED
|
@@ -254,7 +254,7 @@ let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
254
254
|
if (subPageId) {
|
|
255
255
|
this.goToPage(subPageId);
|
|
256
256
|
}
|
|
257
|
-
if (href) {
|
|
257
|
+
if (event.type === 'keydown' && href) {
|
|
258
258
|
var _this$_drilldownRef;
|
|
259
259
|
const optionEl = (_this$_drilldownRef = this._drilldownRef) === null || _this$_drilldownRef === void 0 ? void 0 : _this$_drilldownRef.querySelector(`#${id}`);
|
|
260
260
|
const isLink = optionEl.tagName.toLowerCase() === 'a';
|
package/lib/Drilldown/index.js
CHANGED
|
@@ -267,7 +267,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
267
267
|
if (subPageId) {
|
|
268
268
|
this.goToPage(subPageId);
|
|
269
269
|
}
|
|
270
|
-
if (href) {
|
|
270
|
+
if (event.type === 'keydown' && href) {
|
|
271
271
|
var _this$_drilldownRef;
|
|
272
272
|
const optionEl = (_this$_drilldownRef = this._drilldownRef) === null || _this$_drilldownRef === void 0 ? void 0 : _this$_drilldownRef.querySelector(`#${id}`);
|
|
273
273
|
const isLink = optionEl.tagName.toLowerCase() === 'a';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drilldown",
|
|
3
|
-
"version": "8.47.1-snapshot-
|
|
3
|
+
"version": "8.47.1-snapshot-2",
|
|
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.23.2",
|
|
27
|
-
"@instructure/console": "8.47.1-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.47.1-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.47.1-snapshot-
|
|
30
|
-
"@instructure/ui-dom-utils": "8.47.1-snapshot-
|
|
31
|
-
"@instructure/ui-icons": "8.47.1-snapshot-
|
|
32
|
-
"@instructure/ui-options": "8.47.1-snapshot-
|
|
33
|
-
"@instructure/ui-popover": "8.47.1-snapshot-
|
|
34
|
-
"@instructure/ui-position": "8.47.1-snapshot-
|
|
35
|
-
"@instructure/ui-prop-types": "8.47.1-snapshot-
|
|
36
|
-
"@instructure/ui-react-utils": "8.47.1-snapshot-
|
|
37
|
-
"@instructure/ui-selectable": "8.47.1-snapshot-
|
|
38
|
-
"@instructure/ui-testable": "8.47.1-snapshot-
|
|
39
|
-
"@instructure/ui-utils": "8.47.1-snapshot-
|
|
40
|
-
"@instructure/ui-view": "8.47.1-snapshot-
|
|
27
|
+
"@instructure/console": "8.47.1-snapshot-2",
|
|
28
|
+
"@instructure/emotion": "8.47.1-snapshot-2",
|
|
29
|
+
"@instructure/shared-types": "8.47.1-snapshot-2",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.47.1-snapshot-2",
|
|
31
|
+
"@instructure/ui-icons": "8.47.1-snapshot-2",
|
|
32
|
+
"@instructure/ui-options": "8.47.1-snapshot-2",
|
|
33
|
+
"@instructure/ui-popover": "8.47.1-snapshot-2",
|
|
34
|
+
"@instructure/ui-position": "8.47.1-snapshot-2",
|
|
35
|
+
"@instructure/ui-prop-types": "8.47.1-snapshot-2",
|
|
36
|
+
"@instructure/ui-react-utils": "8.47.1-snapshot-2",
|
|
37
|
+
"@instructure/ui-selectable": "8.47.1-snapshot-2",
|
|
38
|
+
"@instructure/ui-testable": "8.47.1-snapshot-2",
|
|
39
|
+
"@instructure/ui-utils": "8.47.1-snapshot-2",
|
|
40
|
+
"@instructure/ui-view": "8.47.1-snapshot-2",
|
|
41
41
|
"prop-types": "^15.8.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@instructure/ui-babel-preset": "8.47.1-snapshot-
|
|
45
|
-
"@instructure/ui-color-utils": "8.47.1-snapshot-
|
|
46
|
-
"@instructure/ui-test-locator": "8.47.1-snapshot-
|
|
47
|
-
"@instructure/ui-test-utils": "8.47.1-snapshot-
|
|
48
|
-
"@instructure/ui-themes": "8.47.1-snapshot-
|
|
44
|
+
"@instructure/ui-babel-preset": "8.47.1-snapshot-2",
|
|
45
|
+
"@instructure/ui-color-utils": "8.47.1-snapshot-2",
|
|
46
|
+
"@instructure/ui-test-locator": "8.47.1-snapshot-2",
|
|
47
|
+
"@instructure/ui-test-utils": "8.47.1-snapshot-2",
|
|
48
|
+
"@instructure/ui-themes": "8.47.1-snapshot-2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=16.8 <=18"
|
package/src/Drilldown/index.tsx
CHANGED
|
@@ -813,7 +813,7 @@ class Drilldown extends Component<DrilldownProps, DrilldownState> {
|
|
|
813
813
|
this.goToPage(subPageId)
|
|
814
814
|
}
|
|
815
815
|
|
|
816
|
-
if (href) {
|
|
816
|
+
if (event.type === 'keydown' && href) {
|
|
817
817
|
const optionEl = this._drilldownRef?.querySelector(
|
|
818
818
|
`#${id}`
|
|
819
819
|
) as HTMLLinkElement
|