Skip to content

Commit

Permalink
Merge pull request #718 from MrVauxs/patch-2
Browse files Browse the repository at this point in the history
Fix "currentTarget" error
  • Loading branch information
otigon authored Aug 23, 2024
2 parents 7e2693d + 76e367b commit e305226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system-handlers/commonSequences.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function sourceEffect(sourceFX, seq, handler) {
if (options.elevation === 0) {
thisSeq.belowTokens(true)
} else {
thisSeq.elevation(handler.elevation(currentTarget, options.isAbsolute, options.elevation), { absolute: options.isAbsolute })
thisSeq.elevation(options.isAbsolute ? options.elevation : options.elevation - 1, { absolute: options.isAbsolute })
}
if (options.tint) {
thisSeq.tint(options.tintColor)
Expand Down

0 comments on commit e305226

Please sign in to comment.