Skip to content

Commit

Permalink
fix: blur directive argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg committed Mar 15, 2021
1 parent 0772934 commit e48448d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/directives/blur.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export const blur: Directive<BlurOptions> = (config, ctx) => {
let blur: number | boolean | undefined = undefined

blur = config.blur ? parseFloat(config.blur) : undefined
blur = config.blur === 'true'
blur = config.blur === ''
blur ||= config.blur === 'true'
blur ||= config.blur === ''

if (!blur) return

Expand Down

0 comments on commit e48448d

Please sign in to comment.