pengx17 / pengx17/logseq-plugin-template-react
Toolbar button doesn't work
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 147
- Forks
- 19
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
I tried this template. Immediately after cloning, I tried to run it in logseq, but the button in the toolbar did not respond to clicks. Also, its mouseover behavior was not as expected. Then I made some changes and it worked.
Should change this code
<div data-on-click="show" class="${openIconName}">⚙️</div>
...to this
<a data-on-click="show">
<div class="${openIconName}">⚙️</div>
</a>
I hope this was helpful and you will add this little fix to the plugin template.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the toolbar markup shown in the issue and reproduce it by cloning the template and running it in Logseq. Verify that the toolbar button responds to clicks and that its mouseover behavior matches expectations after the markup change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript, vite
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100