TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.01k stars 1.19k forks source link

[BUG] Multiple modals when multiple tag-links on one page #4883

Open xeor opened 4 years ago

xeor commented 4 years ago

If you link to multiple tags on a single tiddler, the popup modal with tag-info is opened, once per defined tag..

Example, a tiddler with

<$macrocall $name="tag" tag="todo"/>
  <$macrocall $name="tag" tag="todo"/>

will render as 2 tag-buttons.. But if you click at one of them, 2 modals open. I've indented one of the links with some spaces to make the modals more visible..

If you add 5 tag-links, you will get 5 modals, and so on..

saqimtiaz commented 4 years ago

Two points of clarification:

1) you mean popups and not modals. Modals within TW have a specific meaning. See https://tiddlywiki.com/#Modals

2) Note this behaviour only occurs when you have two macrocalls for the same tag in the same tiddler. This is related to the way state tiddler titles for the popups are constructed.

pmario commented 10 months ago

@xeor -- There is a thread at Talk, that deals with exactly with the problem you descirbe.

Use variable=“transclusion” in a list widget to get unique popups

If that thread solves your problem, please close this issue here.