Skip to content

Commit 1d29143

Browse files
committed
(docs) handle exec clicks only on links
1 parent 525d1c4 commit 1d29143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/components/Terminal/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ export default function Interpreter(): JSX.Element {
131131
if (replReady() && styleReady()) {
132132
term.current = initTerminal(commands);
133133
jargon_init((globalThis as any).jQuery as JQueryStatic);
134-
term.current.on('click', '.jargon', function() {
134+
term.current.on('click', 'a.jargon', function() {
135135
const href = $(this).attr('href');
136136
invoke(`jargon ${href}`);
137137
return false;
138-
}).on('click', '.command', function() {
138+
}).on('click', 'a.command', function() {
139139
const commnad = $(this).attr('href');
140140
invoke(commnad);
141141
return false;

0 commit comments

Comments
 (0)