Releases: Patternslib/Patterns
Release 9.9.6-alpha.2
Release 9.9.6-alpha.1
9.9.6-alpha.1 (2023-08-30)
Breaking Changes
-
pat-scroll: Remove implicit and unpreventable scroll support for pat-stacks. (92e1e6b)
With a pat-scroll as parent of a pat-stacks enabled navigation anchors,
the page would scroll to the target configured for pat-scroll. This
behavior could not be prevented and led to unwanted effects when using
pat-stacks inside pat-collapsible which itself uses pat-scroll when
configured properly.
This commit removes the scrolling support for pat-stacks within
pat-scroll in favor of an explicit and configurable scrolling behavior
in pat-stacks itself.
Features
-
core dom: Add dom.element_uuid to get/set an uuid to a DOM node. (a7e5de1)
-
pat stacks: Add a destroy method to unregister event handlers. (8479cfa)
-
pat-stacks: Add configurable scroll support. (a8aae63)
Add "scroll-selector" and "scroll-offset" arguments to pat-stacks,
likewise as in pat-collapsible. "scroll-selector" accepts a CSS selector
string or the special values "self" to scroll to the element itself and
"none" to block any scrolling behavior from parent pat-stacks configuration
options.
With these configuration options you can control the scrolling behavior
for pat-stacks on a fine-grained level.
Maintenance
Release 9.9.6-alpha.0
9.9.6-alpha.0 (2023-08-11)
Bug Fixes
-
pat-ajax: Support anchors without a href attribute and forms without an action attribute. (099da3c)
The URL can still be set via the data-pat-ajax attribute.
This fixes a problem where pat-inject enabled forms without an action attribute
but a submit button with a formaction attribute would break. -
pat-inject: For submit buttons with a formaction, do not call ajax.onClickSubmit twice. (22d814f)
-
pat-inject: Support submit buttons without a type attribute. (6882f45)
Maintenance
Release 9.9.5
9.9.5 (2023-07-28)
Bug Fixes
-
pat-close-panel: Do not prevent closing for formnovalidate buttons. (1272ac5)
Do not prevent closing of panels when a form with invalid data is
submitted when a button with the formnovalidate attribute is pressed.
This is useful for cases where a "cancel" button actually needs to
submit to roll back any changes which were already made. -
pat-collapsible: Allow to explicitly clear the scroll selector. (9c99a2e)
In case of nested pat-collapsible elements, child elements inherit the
options from parent elements, including the scroll-selector. If the
child element should do no scrolling, it needs to explicitly be reset.
This can be done by adding th following options to the collapsible data
attribute:
data-pat-collapsible="scroll-selector: none"
Maintenance
Release 9.9.4
Release 9.9.3
Release 9.9.2
Release 9.9.1
9.9.1 (2023-05-23)
Release 9.9.1-alpha.0
9.9.1-alpha.0 (2023-05-23)
Bug Fixes
-
pat inject: Second attempt to fix the scrolling behavior, where the scrolling target could not be found. (829a6a6)
The original problem fixed in commit 911b8b8
for 9.9.0-beta.1 addressed a problem where the scroll target was not a
direct child of the injected content but some levels deeper. But this
fix broke the situation where the scroll target is a direct child of the
injected content. The fix applied here handles both situations.