Skip to content

How to use TextArea/TextField? #4

Description

@RedHatter

I can't figure out how to react to changes when using TextArea or TextField.

I would have expected bind:value to work

<TextArea fullwidth bind:value />

<script>
  import { TextArea } from "svelte-material-components";

  export default {
    data () {
      return {
        value: "Hello World"
      }
    },
    onstate () {
      let { value } = this.get()
      console.log(value)
    },
    components: {
      TextArea
    }
  }
</script>

Or at the very least on:change

<TextArea fullwidth {value} on:change="set({ value: this.value })" />

But neither change the value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions