1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00
TiddlyWiki5/editions/test/tiddlers/tests
Robin Munn 51bdf60ee8
Fix bug when using built-in list field as listField parameter to checkbox widget (#6897)
* Fix bug with checkbox widget and `list` field

The `list` field is stored as a list and frozen against modifications,
and getFieldList() returns it directly without creating a copy. So
before we modify it, we need to make a copy so we're not modifying a
frozen list. This bug doesn't manifest with custom fields, which are
stored as strings, only with the built-in `list` field.

* Fix checkboxes referencing non-existent tiddlers

This fixes the "tiddler is undefined" error when a checkbox's listField
property references a tiddler that doesn't (yet) exist.

* Better logic for checkbox listField handling

If the field contains an array, then it's almost certainly referenced
elsewhere and needs a defensive copy made. If it contained a string,
then it's safe to modify without making a defensive copy.
2022-09-22 18:52:55 +01:00
..
data Various accessibility improvements (#6742) 2022-06-28 14:05:52 +01:00
test-action-widgets.js action-setfield shouldn't write to the current tiddler if the $tiddler attribute is present but has evaluated to a missing attribute 2022-04-16 18:02:27 +01:00
test-backlinks.js Add backlinks indexer (#4421) 2020-03-26 13:15:02 +00:00
test-checkbox-widget.js Fix bug when using built-in list field as listField parameter to checkbox widget (#6897) 2022-09-22 18:52:55 +01:00
test-compare-filter.js Add new compare filter operator 2020-04-13 10:03:01 +01:00
test-deserializers.js Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
test-filters.js New insertafter filter operator (#6771) 2022-07-13 17:08:17 +01:00
test-html-parser.js Allow newlines within filtered transclusions (#6421) 2022-02-21 15:28:21 +00:00
test-json-filters.js JSON Filter Operators (Revised Attempt) (#6936) 2022-09-02 18:15:45 +01:00
test-linked-list.js Memory efficient linked list (#5380) 2021-01-09 20:52:34 +00:00
test-parsetextreference.js Fixed bug introduced into transclusions for blank fields in #5736 (#5835) 2021-06-29 12:07:14 +01:00
test-prefixes-filter.js feat(filters): extend :map filter run prefix to accept a suffix to enable mapflat (#6806) 2022-07-21 09:23:01 +01:00
test-tags.js Fix for tag ordering issue #6382 (#6383) 2022-02-21 15:34:05 +00:00
test-tiddler.js Add isEqual() method to tiddlers 2014-06-23 08:09:59 +01:00
test-utils.js Fix UTC format date string test properly this time (#6709) 2022-05-24 10:02:45 +01:00
test-widget.js Tests: Improve transclusion recursion test 2022-04-26 14:02:08 +01:00
test-wikitext-parser.js Allow newlines within filtered transclusions (#6421) 2022-02-21 15:28:21 +00:00
test-wikitext-tabs-macro.js Update core tabs-macro to make it easier to extend for plugin authors. (#6578) 2022-03-31 15:41:19 +01:00
test-wikitext.js Fix for broken style block wikitext (#6599) 2022-04-06 08:33:38 +01:00