Skip to content

Commit b665605

Browse files
committed
Fix collectionPath being emptied
1 parent f3a4a2a commit b665605

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/webview/apps/contentCreator/addPluginPageApp.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ let pluginNameTextField: VscodeTextfield;
2121
let pluginTypeDropdown: VscodeSingleSelect;
2222

2323
let pluginNameInputField: HTMLInputElement;
24-
let collectionPathUrlInputField: HTMLInputElement;
2524

2625
let collectionPathUrlTextField: VscodeTextfield;
2726
let folderExplorerIcon: VscodeIcon;
@@ -78,10 +77,6 @@ function main() {
7877
pluginNameInputField = pluginNameTextField.shadowRoot?.querySelector(
7978
"#input",
8079
) as HTMLInputElement;
81-
collectionPathUrlInputField =
82-
collectionPathUrlTextField.shadowRoot?.querySelector(
83-
"#input",
84-
) as HTMLInputElement;
8580

8681
pluginNameTextField.addEventListener("input", toggleCreateButton);
8782
collectionPathUrlTextField.addEventListener("input", toggleCreateButton);
@@ -135,7 +130,7 @@ function openExplorer(event: any) {
135130

136131
if (selectedUri) {
137132
if (source === "folder-explorer") {
138-
collectionPathUrlInputField.value = selectedUri;
133+
collectionPathUrlTextField.value = selectedUri;
139134
initCollectionPathElement.innerHTML = selectedUri;
140135
}
141136
}
@@ -147,7 +142,7 @@ function openExplorer(event: any) {
147142
function handleInitClearClick() {
148143
pluginNameInputField.value = "";
149144
pluginTypeDropdown.value = "filter";
150-
collectionPathUrlInputField.value = "";
145+
collectionPathUrlTextField.value = "";
151146

152147
initCollectionPathElement.innerHTML =
153148
collectionPathUrlTextField.placeholder as string;

0 commit comments

Comments
 (0)