File tree Expand file tree Collapse file tree 2 files changed +58
-62
lines changed
src/components/__snapshots__ Expand file tree Collapse file tree 2 files changed +58
-62
lines changed Original file line number Diff line number Diff line change @@ -67,21 +67,21 @@ exports[`<CodePane /> should render correctly. 1`] = `
6767 dangerouslySetInnerHTML = {
6868 Object {
6969 " __html" : "
70- <span class=\\ " token keyword \\" >const</span> myButton <span class=\\ " token operator \\" >=</span> <span class=\\ " token punctuation \\" >(</span>
71- <span class =\\"token tag\\"><span class =\\"token tag\\"><span class =\\"token punctuation\\"><</span>CustomButton</span>
72- <span class =\\"token attr-name\\">style</span><span class =\\"token script language-javascript\\"><span class =\\"token punctuation\\">=</span><span class =\\"token punctuation\\">{</span><span class =\\"token punctuation\\">{</span> background<span class =\\"token punctuation\\">:</span> <span class =\\"token string\\">'#f00'</span> <span class =\\"token punctuation\\">}</span><span class =\\"token punctuation\\">}</span></span>
73- <span class =\\"token attr-name\\">onClick</span><span class =\\"token script language-javascript\\"><span class =\\"token punctuation\\">=</span><span class =\\"token punctuation\\">{</span><span class =\\"token keyword\\">this</span><span class =\\"token punctuation\\">.</span>action<span class =\\"token punctuation\\">}</span></span>
74- <span class =\\"token punctuation\\">></span></span>
75- Click Me
76- <span class =\\"token tag\\"><span class =\\"token tag\\"><span class =\\"token punctuation\\"></</span>CustomButton</span><span class =\\"token punctuation\\">></span></span>
77- <span class =\\"token punctuation\\">)</span><span class =\\"token punctuation\\">;</span>
78- " ,
70+ <span class=\\ " token keyword \\" >const</span> myButton <span class=\\ " token operator \\" >=</span> <span class=\\ " token punctuation \\" >(</span>
71+ <span class =\\"token tag\\"><span class =\\"token tag\\"><span class =\\"token punctuation\\"><</span>CustomButton</span>
72+ <span class =\\"token attr-name\\">style</span><span class =\\"token script language-javascript\\"><span class =\\"token punctuation\\">=</span><span class =\\"token punctuation\\">{</span><span class =\\"token punctuation\\">{</span> background<span class =\\"token punctuation\\">:</span> <span class =\\"token string\\">'#f00'</span> <span class =\\"token punctuation\\">}</span><span class =\\"token punctuation\\">}</span></span>
73+ <span class =\\"token attr-name\\">onClick</span><span class =\\"token script language-javascript\\"><span class =\\"token punctuation\\">=</span><span class =\\"token punctuation\\">{</span><span class =\\"token keyword\\">this</span><span class =\\"token punctuation\\">.</span>action<span class =\\"token punctuation\\">}</span></span>
74+ <span class =\\"token punctuation\\">></span></span>
75+ Click Me
76+ <span class =\\"token tag\\"><span class =\\"token tag\\"><span class =\\"token punctuation\\"></</span>CustomButton</span><span class =\\"token punctuation\\">></span></span>
77+ <span class =\\"token punctuation\\">)</span><span class =\\"token punctuation\\">;</span>
78+ " ,
7979 }
8080 }
8181 language=" jsx"
82- onClick = { undefined }
83- onKeyDown = { undefined }
84- onKeyUp = { undefined }
82+ onClick = { false }
83+ onKeyDown = { false }
84+ onKeyUp = { false }
8585 spellCheck = " false"
8686 style = { undefined }
8787 styles = { undefined }
You can’t perform that action at this time.
0 commit comments