javalent / dice-roller

Inline dice rolling for Obsidian.md
265 stars 27 forks source link

🐞 Clicking on table/list roller opens markdown #281

Open pbhopeful opened 7 months ago

pbhopeful commented 7 months ago

Check for existing bug reports before submitting.

Expected Behavior

Reroll roller on click in live preview.

Current behaviour

Using live preview, when I click on a normal roller, e.g. `dice: 2d6+1', the dice re-rolls without opening the markdown code for the roller as expected. However, when I click on a list or table roller, it does not reroll, but instead opens the markdown code for the roller. If I then click out of the code, it rerolls. See attached video for example.

https://github.com/javalent/dice-roller/assets/86982737/f16c658c-27ce-4351-80c0-c1b249b42d7a

Reproduction

See above, I have tested this on a new vault with no styles or other plugins.

Which Operating Systems are you using?

Obsidian Version Check

1.4.16

Plugin Version

10.4.0

Confirmation

Possible solution

No response