CrudField Javascript Library stops working properly when VueJs is mounted #1284
Replies: 2 comments 1 reply
-
🚨 Bot is not sure about this answer. Please verify. 🚨 Based on the knowledge sources provided, I don't have enough specific information to directly address the interaction between the CrudField JavaScript Library and Vue.js. The documents don't contain any explicit mentions of Vue.js or potential conflicts with it. However, I can provide some general insights based on the CrudField JavaScript Library functionality:
To troubleshoot this issue, you could try:
If the problem persists, you might want to create a minimal reproducible example and submit an issue to the Backpack GitHub repository for more specific assistance. Remember, the CrudField JavaScript Library is designed to work with Backpack, so any modifications to the DOM structure or event handling by Vue.js could potentially interfere with its functionality. ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: CrudField JavaScript Library (question about work ) |
Beta Was this translation helpful? Give feedback.
-
Hey @quiquegarcia I was unable to reproduce the issue. Here is what I did:
'scripts' => [
'https://unpkg.com/vue@3/dist/vue.global.js',
],
'vite_scripts' => [ // resource file_path
'public/assets/js/app.js',
],
App.js: const { createApp, ref } = Vue
const app = createApp({
/* root component options */
}) I found no conflict. Can you tell me additional steps to reproduce? |
Beta Was this translation helpful? Give feedback.
-
Hello!
Can anyone can help me to understand why CrudField Library won't work properly if I mount a VueJs application? I have this code:
In the other side I have a simple counter app using VueJs, when I mount that app the onChange() event stops working, but if I remove the VueJs app everything works again.
Another thing I noticed is that if I paste the same code using CrudField library in the javascript console after the VueJs app is mounted, works as expected and the counter also works well.
Anyone has an idea?
Beta Was this translation helpful? Give feedback.
All reactions