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 794fe0c commit 9312d1dCopy full SHA for 9312d1d
src/observers.ts
@@ -32,8 +32,8 @@ function getRootId(root?: Element | null) {
32
*/
33
export function optionsToId(options: IntersectionObserverInit) {
34
return Object.keys(options)
35
- .filter(Boolean)
36
.sort()
+ .filter((key) => options[key] !== undefined)
37
.map((key) => {
38
return `${key}_${
39
key === 'root' ? getRootId(options.root) : options[key]
0 commit comments