Skip to content

Commit

Permalink
make closestTimelineItem more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Aug 16, 2023
1 parent f248c76 commit 0b7f2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const blogViewSelector = '[style*="--blog-title-color"] *';
const listTimelineObjectSelector = keyToCss('listTimelineObject');
const cellSelector = keyToCss('cell');

export const closestTimelineItem = element => element.closest(cellSelector) || element.closest(listTimelineObjectSelector);
export const closestTimelineItem = element => element.closest(cellSelector) || element.closest(listTimelineObjectSelector) || element;

/**
* @typedef {object} PostFilterOptions
Expand Down

0 comments on commit 0b7f2a3

Please sign in to comment.