Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed Jul 20, 2023
1 parent acdb6de commit c0a9f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/components/ElementNamer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const CopyButtonNamer = ({ names }) => {
for (let i = 0; i < buttons.length; i++) {
buttons[i].setAttribute('aria-label', names[i]);
}
});
};
window.addEventListener('load', onWindowLoadHander);
return () => window.removeEventListener('load', onWindowLoadHander);
}, [names]);
Expand Down

0 comments on commit c0a9f79

Please sign in to comment.