shabegom / buttons

Buttons in Obsidian
The Unlicense
455 stars 47 forks source link

Multiple buttons of the same name toggle only one action #161

Closed MichalBryxi closed 5 months ago

MichalBryxi commented 1 year ago
name foo
type note(<% tp.date.now("YYYY-MM-DD HH-mm-ss") %>, split) template
action Meeting
templater true
name foo
type note(<% tp.date.now("YYYY-MM-DD HH-mm-ss") %>, split) template
action Note
templater true

Following buttons have the same name == 'foo' and when I press either of them, they will both fire action of Note. The fix is simple: Have different names, but I think this is a bug and this plugin should make sure that clicking a button will fire action attached to the respective button.

grecha2003 commented 5 months ago

аналогичная проблема. хотелось бы чтобы решили её, для эстетики

similar problem. I would like to see it solved, for the aesthetics of the notes. 2024-01-12_00-50

shabegom commented 5 months ago

they need diferent button ids if they have the same name