Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<input value> acceptValue.includes is not a function #142

Open
DM2489 opened this issue Jul 11, 2018 · 0 comments
Open

<input value> acceptValue.includes is not a function #142

DM2489 opened this issue Jul 11, 2018 · 0 comments

Comments

@DM2489
Copy link

DM2489 commented Jul 11, 2018

When elements require a value property, how is this best done? I keep getting the error message whenever I go near a value property.

Example

render() {
        return (
            <input value="0" />
        )
    }

Error:

TypeError: file.js: acceptValue.includes is not a function
    at module.exports (node_modules\babel-plugin-transform-vue-jsx\lib\must-use-prop.js:4:38)
    at node_modules\babel-plugin-transform-vue-jsx\index.js:100:19
    at Array.forEach (native)
    at JSXOpeningElement (node_modules\babel-plugin-transform-vue-jsx\index.js:91:24)

I can fix this by using domPropsValue but is this the correct/only solution? If so, this should be added to the documentation!

render() {
        return (
            <input domPropsValue="0" />
        )
    }
@DM2489 DM2489 changed the title <input value=""> acceptValue.includes is not a function <input value> acceptValue.includes is not a function Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant