dasmikko / i18n-editor

A super simple editor for vue-18n by kazupon
http://rekna.xyz/i18n-editor/
36 stars 1 forks source link

when renaming object key #12

Closed Metsavend closed 1 week ago

Metsavend commented 2 years ago

If you want to renaming object key but you cancel and want to open again it will be empty and may cause some issues.

I fixed it in (RenameDialog.vue) by editting these lines.

starting line 54

  watch(
      dialogVisible,
      (val) => {
        if (!val) inputValue.value = props.currentPath[props.currentPath.length - 1]
      }
  )