diff --git a/src/try/build.ts b/src/try/build.ts index 8e01304..f26c9f9 100644 --- a/src/try/build.ts +++ b/src/try/build.ts @@ -283,8 +283,8 @@ function addBlock(isEntryPoint = false, path = '', content = ''): Block { } let sourceMapLinkEl: HTMLAnchorElement | undefined - disableAnnoyingBehaviors(pathEl) - disableAnnoyingBehaviors(contentEl) + disableAnnoyingBehaviors(pathEl, false) + disableAnnoyingBehaviors(contentEl, false) pathEl.placeholder = '' pathEl.value = path entryEl.className = 'entryToggle' diff --git a/src/try/output.ts b/src/try/output.ts index 9b9abc5..65b2789 100644 --- a/src/try/output.ts +++ b/src/try/output.ts @@ -52,7 +52,7 @@ export function resetHeight(el: HTMLTextAreaElement): void { document.body.style.paddingBottom = '0' } -export function disableAnnoyingBehaviors(el: HTMLTextAreaElement | HTMLInputElement, readOnly = false): void { +export function disableAnnoyingBehaviors(el: HTMLTextAreaElement | HTMLInputElement, readOnly: boolean): void { el.readOnly = readOnly el.spellcheck = false el.autocapitalize = 'off' @@ -194,7 +194,7 @@ export function updateBuildOutput({ outputFiles_, metafile_, mangleCache_, stder outputPath.append(outputSize) textarea.readOnly = true textarea.value = file.text.replace(/\n$/, '') - disableAnnoyingBehaviors(textarea) + disableAnnoyingBehaviors(textarea, true) div.className = 'buildOutput hasLabel' div.append(textarea)