@primer/view-components 0.35.0 → 0.35.1-rc.540a60f1
Sign up to get free protection for your applications and to get access to all the features.
@@ -255,10 +255,12 @@ let SelectPanelElement = class SelectPanelElement extends HTMLElement {
|
|
255
255
|
this.dialog.removeAttribute('data-ready');
|
256
256
|
this.invokerElement?.setAttribute('aria-expanded', 'false');
|
257
257
|
// When we close the dialog, clear the filter input
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
258
|
+
if (this.filterInputTextField) {
|
259
|
+
const fireSearchEvent = this.filterInputTextField.value.length > 0;
|
260
|
+
this.filterInputTextField.value = '';
|
261
|
+
if (fireSearchEvent) {
|
262
|
+
this.filterInputTextField.dispatchEvent(new Event('input'));
|
263
|
+
}
|
262
264
|
}
|
263
265
|
this.dispatchEvent(new CustomEvent('panelClosed', {
|
264
266
|
detail: { panel: this },
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.35.
|
3
|
+
"version": "0.35.1-rc.540a60f1",
|
4
4
|
"description": "ViewComponents for the Primer Design System",
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
6
6
|
"module": "app/components/primer/primer.js",
|
@@ -56,6 +56,9 @@
|
|
56
56
|
"@oddbird/popover-polyfill": "^0.4.0",
|
57
57
|
"@primer/behaviors": "^1.3.4"
|
58
58
|
},
|
59
|
+
"peerDependencies": {
|
60
|
+
"@primer/primitives": "9.x || 10.x"
|
61
|
+
},
|
59
62
|
"devDependencies": {
|
60
63
|
"@changesets/changelog-github": "^0.5.0",
|
61
64
|
"@changesets/cli": "^2.24.1",
|
@@ -65,7 +68,6 @@
|
|
65
68
|
"@github/prettier-config": "0.0.6",
|
66
69
|
"@playwright/test": "^1.35.1",
|
67
70
|
"@primer/css": "21.5.0",
|
68
|
-
"@primer/primitives": "^9.0.2",
|
69
71
|
"@primer/stylelint-config": "^13.1.1",
|
70
72
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
71
73
|
"@rollup/plugin-typescript": "^8.3.3",
|