Skip to content

False positive missing required prop due to the hyphanate function #12011

Closed
@kazvaggos

Description

Vue version

3.4.15

Link to minimal reproduction

https://play.vuejs.org/#eNqNUsFSwjAQ/ZU1F3SG0oOcsDJjHQ56UEad8ZJLaRcaaJOYpIDT6b+bpFBwFIZLJtn3Nvt299XkQcrBukIyIpFOFZMGNJpKjilnpRTKwKMoJcyVKKE3CN3D0Xt3lFMehW2KJduHwVIWiUH7AohSlzbKEx3MhsEskErIe0qMqpASCMcQXQUBfAq10rBhJheVgQQ2ieKML8DkiQGXAkyDwq+KKcwgCP58HVzy92UfR+FRA6RPjE4Fn7PFYKkFt+OpXW1KXHFWoHqVhgmuKRmBRxyWFIXYPPuYE9Pfx9Mc09U/8aXeuhglU4Ua1drK7zCTqAWaFp68v+DW3juwFFlVWPYZ8A21KCqnsaXFFc+s7COeV/vkl2xH86EnW4Nc75vy07TMxvMpsUt3yz/V+kHu7WDo8yhv7BT3hjntrxoynDOOU7sVDc3Oas5jzlVwjF7vytnVx8PYhToFAOZb4ghiIQpM+K5J6HZ8aMhLs8fNef9mbO0vAHV9qNf43Chs0d+WaX4A878YBQ==

Steps to reproduce

You can open the console to see the false positive warning on the above example

What is expected?

It is expected that the hyphanated prop of hasB4BProp would result to has-b-4-b-prop

What is actually happening?

The hyphanated prop of hasB4BProp results to has-b4-b-prop

System Info

System:
    OS: macOS 14.7
  Binaries:
    Node: 20.2.0
    npm: 9.6.6
  Browsers:
    Chrome: 128.0.6613.138
  npmPackages:
    vue: 3.4.15 => 3.4.15

Any additional comments?

Just noticed the false positive warning while the functionality works as expected. Also tested the hyphenate function and found out the reason

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions