simple-code-editor icon indicating copy to clipboard operation
simple-code-editor copied to clipboard

Cannot read properties of undefined (reading 'disabled')

Open Hidetaro7 opened this issue 1 year ago • 1 comments

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.

Hidetaro7 avatar Feb 25 '24 04:02 Hidetaro7

Yes, you're right.

It should be:

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

ping @justcaliturner

cyrilf avatar Mar 04 '24 22:03 cyrilf