@primer/view-components 0.38.0 → 0.39.0-rc.2a62a5ab
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.
@@ -893,7 +893,7 @@ _SelectPanelElement_setDynamicLabel = function _SelectPanelElement_setDynamicLab
|
|
893
893
|
};
|
894
894
|
_SelectPanelElement_updateInput = function _SelectPanelElement_updateInput() {
|
895
895
|
if (this.selectVariant === 'single') {
|
896
|
-
const input = this.querySelector(`[data-
|
896
|
+
const input = this.querySelector(`[data-select-panel-inputs=true] input`);
|
897
897
|
if (!input)
|
898
898
|
return;
|
899
899
|
const selectedItem = this.selectedItems[0];
|
@@ -903,13 +903,13 @@ _SelectPanelElement_updateInput = function _SelectPanelElement_updateInput() {
|
|
903
903
|
input.name = selectedItem.inputName;
|
904
904
|
input.removeAttribute('disabled');
|
905
905
|
}
|
906
|
-
else {
|
906
|
+
else if (__classPrivateFieldGet(this, _SelectPanelElement_hasLoadedData, "f")) {
|
907
907
|
input.setAttribute('disabled', 'disabled');
|
908
908
|
}
|
909
909
|
}
|
910
910
|
else if (this.selectVariant !== 'none') {
|
911
911
|
// multiple select variant
|
912
|
-
const inputList = this.querySelector('[data-
|
912
|
+
const inputList = this.querySelector('[data-select-panel-inputs=true]');
|
913
913
|
if (!inputList)
|
914
914
|
return;
|
915
915
|
const inputs = inputList.querySelectorAll('input');
|
@@ -918,7 +918,7 @@ _SelectPanelElement_updateInput = function _SelectPanelElement_updateInput() {
|
|
918
918
|
}
|
919
919
|
for (const selectedItem of this.selectedItems) {
|
920
920
|
const newInput = document.createElement('input');
|
921
|
-
newInput.setAttribute('data-
|
921
|
+
newInput.setAttribute('data-select-panel-input', 'true');
|
922
922
|
newInput.type = 'hidden';
|
923
923
|
newInput.autocomplete = 'off';
|
924
924
|
newInput.name = selectedItem.inputName || __classPrivateFieldGet(this, _SelectPanelElement_inputName, "f");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.39.0-rc.2a62a5ab",
|
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",
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"@playwright/test": "^1.49.1",
|
71
71
|
"@primer/css": "21.5.1",
|
72
72
|
"@primer/stylelint-config": "^13.1.1",
|
73
|
-
"@rollup/plugin-node-resolve": "^
|
73
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
74
74
|
"@rollup/plugin-typescript": "^8.3.3",
|
75
75
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
76
76
|
"@typescript-eslint/parser": "^7.0.1",
|