Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attrs is readonly #297

Open
titanfat opened this issue Jul 23, 2021 · 1 comment
Open

Attrs is readonly #297

titanfat opened this issue Jul 23, 2021 · 1 comment

Comments

@titanfat
Copy link

titanfat commented Jul 23, 2021

Greetings. Trix has been added to the Rail project via yarn for Vie. And such an error occurs. As you enter, it is repeated and more added. Trix itself renders and works. Trix and Action Text is not connected in the backend

[Vue warn]: $attrs is readonly.

found in

--->
at app/javascript/src/views/work_categories/WorkCategoryForm.vue
vue.runtime.esm.js:619
VueJS 26
warn
initRender
reactiveSetter
updateChildComponent
prepatch
patchVnode
updateChildren
patchVnode
updateChildren
patchVnode
updateChildren
patchVnode
updateChildren
patchVnode
updateChildren
patchVnode
updateChildren
patchVnode
patch
_update
updateComponent
get
run
flushSchedulerQueue
nextTick
flushCallbacks


[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "srcContent"

found in

--->
at o-din/app/javascript/src/views/work_categories/WorkCategoryForm.vue
vue.runtime.esm.js:619
VueJS 26

In Layout:
.form-group label {{ $t('activerecord.attributes.work_category.description') }} vue-trix.form-control(v-model='work_category.description' rows="3")

@titanfat titanfat changed the title attrs is readonly Attrs is readonly Jul 23, 2021
@inspire22
Copy link

Are you using vue 3.x? Currently vue-trix needs vue to be run in compatibility mode with 3.1 to work unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants