We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b21d76 commit 3e51d45Copy full SHA for 3e51d45
‎src/index.ts‎
@@ -230,11 +230,11 @@ function alignNearest(
230
}
231
232
function getParentElement(element: Node): Element | null {
233
- const parent = element.parentElement;
234
- if (parent == null) {
235
- return (element.getRootNode() as ShadowRoot).host || null;
236
- }
237
- return parent;
+ const parent = element.parentElement
+ if (parent == null) {
+ return (element.getRootNode() as ShadowRoot).host || null
+ }
+ return parent
238
239
240
export default (target: Element, options: Options): CustomScrollAction[] => {
0 commit comments