Hi Stephan

Welcome back!

I'm afraid that's a bug in v5.1.19 that's been fixed in the prerelease 
(see https://github.com/Jermolene/TiddlyWiki5/pull/3848). You can work 
around it by using a text reference for the reveal widget instead of 
separate title and field attributes.

Best wishes

Jeremy

On Wednesday, July 10, 2019 at 8:35:14 AM UTC+1, Stephan Hradek wrote:
>
> I'm wondering: what am I doing wrong?
>
> Paste this into a new tiddler:
>
> <$button popup="$:/SamplePopupState!!editmode">Pop me up!</$button>
>
> <$reveal type="popup" stateTitle="$:/SamplePopupState" 
> stateField="editmode">
> <div class="tc-drop-down tc-popup-keep">
>
> ! This is the popup
> And this is some text
>
> </div>
> </$reveal>
>
> and you'll get
>
> Internal JavaScript Error
>> Well, this is embarrassing. It is recommended that you restart TiddlyWiki 
>> by refreshing your browser
>>
>  
>
>> TypeError: undefined is not an object (evaluating 
>> 'this.wiki.getTiddler(this.stateTitle).getFieldString')
>>
>>  
>  I simply wanted the popup to have its state stored in a field of an 
> existing tiddler.
>
> In the popup I want to enter some data.
>
>
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/19da2860-bed2-4523-97c2-df9b58377b52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to