You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pat-collapsible): Allow to explicitly clear the scroll selector.
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"
it("8.3 - only scrolls once even if multiple collapsible are opened at once.",asyncfunction(){
@@ -238,6 +236,29 @@ describe("pat-collapsible", function () {
238
236
constarg_1=this.spy_scrollTo.mock.calls[0][0];
239
237
expect(arg_1.top).toBe(40);// the offset is substracted from the scroll position, so a negative offset is added to the scroll position and stops AFTER the target position.
240
238
});
239
+
240
+
it("8.6 - disables scrolling if a parent pat-collapsible has enabled it.",asyncfunction(){
Copy file name to clipboardExpand all lines: src/pat/collapsible/documentation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,5 +169,5 @@ attribute. The available options are:
169
169
|`transition`|`slide`| Transition effect when opening or closing a collapsinble. Must be one of `none`, `css`, `fade`, `slide` or `slide-horizontal`. |
170
170
|`effect-duration`|`fast`| Duration of transition. This is ignored if the transition is `none` or `css`. |
171
171
|`effect-easing`|`swing`| Easing to use for the open/close animation. This must be a known jQuery easing method. jQuery includes `swing` and `linear`, but more can be included via jQuery UI. |
172
-
|`scroll-selector`|| CSS selectoror `self`. Defines which element will be scrolled into view. `self` if it is the collapsible element itself. |
172
+
|`scroll-selector`|| CSS selector, `self`or `none`. Defines which element will be scrolled into view. `self` if it is the collapsible element itself. `none` to disable scrolling if a scrolling selector is inherited from a parent pat-collapsible element.|
173
173
|`scroll-offset`||`offset` in pixels to stop scrolling before the target position defines by `scroll-selector`. Can also be a negative number. |
0 commit comments