justcaliturner / simple-code-editor

Simple code editor for Vue.js
https://simple-code-editor.vicuxd.com
150 stars 28 forks source link

Cannot read properties of undefined (reading 'disabled') #48

Open Hidetaro7 opened 6 months ago

Hidetaro7 commented 6 months ago

https://github.com/justcaliturner/simple-code-editor/blob/4a6894b64d50ea70462efa98573fb6f60bf16091/website/src/SimpleCodeEditor/Dropdown.vue#L6

It seems that this cannot be referenced. Removing it solved the error. Am I using it incorrectly?

environment: I'm trying to use it for Astro 4

node v20.11.1 npm v10.2.4 yann v1.22.15

I'm so familiar with the Vue3 Composition API that I forgot about the Option API.

cyrilf commented 6 months ago

Yes, you're right.

It should be:

- v-if="!this.disabled"
+ v-if="!disabled"

ping @justcaliturner