Search code examples
vue.jsvue-componentnuxt.jsfroala

How to set autofocus on Vue froala component


I have a vue froala component

         <froala
            v-model="note"
            :tag="'textarea'"
            :config="config"
          >
          </froala>

In script , i set focus to true to set autofocus on text area. But its not working

config: {
      focus: true
  }

Solution

  • config: {
          autofocus: true
      }
    

    works for me