On Wednesday, July 22, 2020 at 6:40:28 AM UTC-7, Mark S. wrote:
>
> Maybe this isn't possible. I would like to make a popup box that has an
> input field that users can enter information into. I want the popup to
> "stick" until someone clicks outside the box. Unfortunately, currently the
> box closes as soon as a field is entered.
>
Use "tc-popup-keep" on the tc-drop-down element:
<$button popup=<<qualify "$:/state/popup/something">>> button label
</$button>
<$reveal state=<<qualify "$:/state/popup/something">> type="popup">
<div class="tc-drop-down tc-popup-keep"
style="min-width:fit-content;padding:1em;">
enter whatever here:
<$edit-text tiddler="whatever" tag="input" placeholder=""
default="" focus="true"/>
</div>
</$reveal>
enjoy,
-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/2b391b76-7508-4e7c-9ae3-be24e73d2068o%40googlegroups.com.