1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-02-23 10:29:51 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
saqimtiaz
d5e7dfeaff fix: missing attributes must be undefined 2026-02-22 22:10:38 +01:00
2 changed files with 40 additions and 1 deletions

View File

@@ -390,7 +390,7 @@ Widget.prototype.computeAttributes = function(options) {
if($tw.utils.isArray(value)) {
multiValue = value;
newMultiValuedAttributes[name] = multiValue;
value = value[0] || "";
value = value[0];
}
var changed = (self.attributes[name] !== value);
if(!changed && multiValue && self.multiValuedAttributes) {

View File

@@ -0,0 +1,39 @@
title: Transclude/MissingTiddlerAttribute
description: Missing Tiddler Attribute
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\procedure testproc()
This is ''wikitext''
\end
<$tiddler tiddler="Data">
<$transclude $index="testindex"/>
-
{{##testindex}}
-
<$transclude $field="custom"/>
-
{{!!custom}}
</$tiddler>
+
title: Data
type: application/x-tiddler-dictionary
custom: This is ''wikitext''
testindex: This is ''wikitext''
+
title: ExpectedResult
<p>
This is <strong>wikitext</strong>
-
This is <strong>wikitext</strong>
-
This is <strong>wikitext</strong>
-
This is <strong>wikitext</strong>
</p>