Skip to content

Commit

Permalink
fix: text selection inside advanced section (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelramalho19 authored Apr 1, 2021
1 parent 4560981 commit f06350e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/details/Details.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import 'details-polyfill'
const Details = ({
summaryText = 'Advanced',
children,
onClick,
...props
}) => {
return (
<details {...props}>
<summary className='pointer blue outline-0'>{summaryText}</summary>
<summary className='pointer blue outline-0' onClick={onClick}>{summaryText}</summary>
{children}
</details>
)
Expand Down

0 comments on commit f06350e

Please sign in to comment.