javalent / dice-roller

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

🐞 Re-rolling with Button Plugin goes into infinite loop #285

Closed namtrah closed 6 months ago

namtrah commented 7 months ago

Check for existing bug reports before submitting.

Expected Behavior

I would expect that when I press the "re-roll" button that the dice in the markdown document would re-roll. Only those without |form seem to complete.

Current behaviour

Each of the dice with a |form field show a looping circle which never ends until I reload the file with my particular settings (glad to DM you). Sees default settings work fine, but using graphical dice may be an issue?

Reproduction

Note: Internal backticks for the button plugin are wrong.


´´´button
name Reroll Dice
type command
action Dice Roller: Re-roll Dice
´´´
^button-us-bm-dice

### Example Random Encounter

**Morning:** `dice: 1d20>=16|form`

**Afternoon:** `dice: 1d20>=16|form`

**Evening:** `dice: 1d20>=16|form`

Which Operating Systems are you using?

Obsidian Version Check

Obsidian version: v1.5.3    Installer version: v1.4.16

Plugin Version

Dice Roller v10.4.0

Confirmation

Possible solution

No response