You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Checkbox cannot be toggled if [x] is lowercase #11046
A list with [x] (lower case) renders as a checkbox (same as [X]) but cannot be toggled by clicking.
Reproduce the Bug
Enter a block with lower case [x] checkbox, e.g.
- In a checklist:
* [X] This is a normal checkbox with [X]. It can be toggled.
* [x] This checkbox accidentally has a lowercase [x]. It cannot be toggled.
Attempt to toggle the checkbox. It does not toggle.
Expected Behavior
Either
Toggle [x] in the same way as [X], or
Do not render [x] as a checkbox
Screenshots
2024-02-25_19h17_05.mp4
Desktop or Mobile Platform Information
Windows 11, Android
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.
@llcc Thanks for the work you did in b2e0f27! It looks like the pattern matching is case-sensitive, but replace-first has case-insensitive alternatives. If you have a moment to look at this, I think it would be a rather quick fix. (Sorry I can't submit a PR myself---I have zero clojure experience, so I think I'm likely to break something.)
Activity
ambevill commentedon Feb 25, 2024
@llcc Thanks for the work you did in b2e0f27! It looks like the pattern matching is case-sensitive, but replace-first has case-insensitive alternatives. If you have a moment to look at this, I think it would be a rather quick fix. (Sorry I can't submit a PR myself---I have zero clojure experience, so I think I'm likely to break something.)
ambevill commentedon Feb 25, 2024
This might explain some of the late comments on #3617. Also, #7113 touches related code but is a distinct issue.
fixes logseq#11046
logseq#11046 use replace-first instead of replace
#11046 use replace-first instead of replace
fixes #11046
fixes #11046
#11046 use replace-first instead of replace