Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

CTextarea's v-model binds to the wrong prop #548

@TheReincarnator

Description

@TheReincarnator

In CTextarea, the v-model configuration binds to inputValue and change. However, Vue's textarea component (which is in turn used by composing CInput) has a value prop.

So the following template does not work:

<CTextarea v-model="firstName"/>

while the following works:

<CTextarea :value="firstName" @change="(newValue) => (firstName = newValue)"/>

If I am not mistaking, the model declaration in CTextarea should be

model: {
    prop: 'value',
    event: 'change'
  },

without any extra prop

inputValue: String,

Or am I wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions