Thanks for the comment! But should it not be triggered on the click as well? "If the popup is triggered OR..." I would assume that it should still trigger when the button is clicked, even if the second part is never true? But yes I actually made a post here <https://groups.google.com/g/tiddlywiki/c/pjT4iV_wHE4/m/AP2LDgUdAwAJ> and you helped me in making this button. It worked just fine, I remember having it all set up and I was pleased.
-Petri On Monday, November 1, 2021 at 2:10:31 PM UTC+2 Eric Shulman wrote: > According to the documentation in https://tiddlywiki.com/#ButtonWidget, > the `selectedClass` parameter is assigned "if the popup is triggered or *the > tiddler specified in set already has the value specified in setTo*" > > However, in your `$button` code, the `setTo` parameter is calculated using > a filtered transclusion whose value will always be the *opposite* of the > current value stored in the `$:/state/petri/sidebar3` tiddler. Thus, the > `selectedClass` is never applied. > > Are you certain that this used to work "a few weeks back"? > > -e > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fd6c29df-a05c-4980-a539-b424a8fc908an%40googlegroups.com.

