Skip to content

Commit 1b4ee23

Browse files
sgbjjolanglinais
authored andcommitted
Fix list blocks register as hyperlink (accordproject#84)
Signed-off-by: sgbj <scott.batary@gmail.com>
1 parent ce339d0 commit 1b4ee23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormattingToolbar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export default class FormatToolbar extends React.Component {
248248
renderLinkButton(type, icon, hi, wi, pa, vBox, classInput) {
249249
const { editor, editorProps } = this.props;
250250

251-
const isActive = action.getSelectedListBlock(editor);
251+
const isActive = action.hasLinks(editor);
252252

253253
const fillActivity = isActive
254254
? '#2587DA'

0 commit comments

Comments
 (0)