Skip to content

Schema: Parenthetical statements with no operator execute string statements #857

@snoozbuster

Description

@snoozbuster

Reproduction

https://formkit.link/f7751afff5df25f181e8adb65ceed99c

Describe the bug

The following two expressions have identical meanings, but produce different results:

`(($value) <= ('2023-07-07')) === (false)`
`(($value) <= '2023-07-07') === (false)`

In specifics - the first does not evaluate to true in any scenario I have tried. The second works as expected. This behavior does not happen for < or >, but does happen for >=.

In the reproduction, entering 2023-07-08 into the input field should cause all three examples to be shown. However, the middle one does

Environment

• OS: MacOs
• Browser Edge
• Version latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugVerified bug by team🚀 release-readyFeature or fix is complete and on an upcoming release branch🟡 priority-22. Medium priority issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions