Skip to content

Commit 34a8bdf

Browse files
committed
don't auto copy - it might remove user's clipboard
1 parent 6c2af68 commit 34a8bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Export.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export default class Export extends React.Component {
207207
<p>S.O. does not support es6 modules yet so picking "As Module" puts the code in a &lt;script&gt; in the HTML area.</p>
208208
</div>
209209
<div className="copy-text">
210-
<pre className="layout-scrollbar" onClick={selectAndCopy} style={{userSelect: 'all', overflow: 'auto', height: '5em'}}>{makeSnippet(data, asModule)}</pre>
210+
<pre className="layout-scrollbar" style={{userSelect: 'all', overflow: 'auto', height: '5em'}}>{makeSnippet(data, asModule)}</pre>
211211
<div className="copy-buttons">
212212
<button type="button" onClick={() => navigator.clipboard.writeText(makeSnippet(data, asModule))}>copy</button>
213213
</div>
@@ -218,7 +218,7 @@ export default class Export extends React.Component {
218218
<div><input type="radio" id="export-as-script" checked={!asModule} onChange={_ => this.onChange(false)}/><label htmlFor="export-as-script">As script</label></div>
219219
</div>
220220
<div className="copy-text">
221-
<pre className="layout-scrollbar" onClick={selectAndCopy} style={{userSelect: 'all', overflow: 'auto', height: '5em'}}>{makeHTML(data, asModule)}</pre>
221+
<pre className="layout-scrollbar" style={{userSelect: 'all', overflow: 'auto', height: '5em'}}>{makeHTML(data, asModule)}</pre>
222222
<div className="copy-buttons">
223223
<button type="button" onClick={this.saveToFile}>save</button>
224224
<button type="button" onClick={() => navigator.clipboard.writeText(makeHTML(data, asModule))}>copy</button>

0 commit comments

Comments
 (0)