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

:line-nums | Invalid array length

Open l99shka opened this issue 1 year ago • 2 comments

                <CodeEditor
                    class="border"
                    v-model="code"
                    :languages="[['php', 'PHP']]"
                    theme="a11y-light"
                    font-size="14px"
                    width="100%"
                    height="140px"
                    border-radius="0"
                    :line-nums="true"
                />

if I use the editor inside the collapse, then after opening I will have an error: Снимок экрана от 2024-03-27 15-29-00

How to fix it?

l99shka avatar Mar 27 '24 12:03 l99shka

I have the same problem,, I changed the v-show to v-if, and it was solved, maybe it was the loading order problem?

yingming7 avatar Jul 27 '24 03:07 yingming7