Skip to content

Commit

Permalink
[docs] Make code variant non-resettable
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Aug 12, 2021
1 parent 49b75b0 commit 6d21025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/modules/components/DemoToolbar.js
Expand Up @@ -226,7 +226,7 @@ export default function DemoToolbar(props) {
};

const handleCodeLanguageClick = (event, clickedCodeVariant) => {
if (codeVariant !== clickedCodeVariant) {
if (clickedCodeVariant !== null && codeVariant !== clickedCodeVariant) {
dispatch({
type: ACTION_TYPES.OPTIONS_CHANGE,
payload: {
Expand Down

0 comments on commit 6d21025

Please sign in to comment.