Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure ql-active gets set on toolbar checklist buttons #1944

Closed
wants to merge 1 commit into from

Conversation

SomeHats
Copy link

@SomeHats SomeHats commented Feb 6, 2018

Currently, {list: 'check'} toolbar buttons don't get .ql-active when the selection is over a checklist. This is because the format of checklists is either checked or unchecked, rather than matching the toolbar button value like most other formats.

This PR fixes this issue by looking up the correct format value before checking against the button value.

Thanks for your awesome work on Quill ✨🌟

@jhchen
Copy link
Member

jhchen commented Feb 25, 2018

Thanks for the PR. This limitation is why checklists are not yet officially released. While your approach probably works it involves hard-coding and would prefer to solve it more generally by adding flexibility to the keyboard module itself.

@A6Brgeuka
Copy link

👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants