admin管理员组文章数量:1390391
I am using survey-react-ui version 1.12.27, all other events are triggering but onUploadFiles event is not triggering.
When i select file using "choose file" button event does not trigger. while drag and drop the file to the drag drop area triggers the onUploadFiles event. i tried with different versions of react and different versions of survey-react-ui, for each new project it works fine but in my project where i need it work correctly it is not working.
i tried to manually fire the model.onUploadFiles event by adding an event listener to the choose file button, but in this case i am not able to get all the call backs which are available survey-react-ui's onUploadFiles.
I am using survey-react-ui version 1.12.27, all other events are triggering but onUploadFiles event is not triggering.
When i select file using "choose file" button event does not trigger. while drag and drop the file to the drag drop area triggers the onUploadFiles event. i tried with different versions of react and different versions of survey-react-ui, for each new project it works fine but in my project where i need it work correctly it is not working.
i tried to manually fire the model.onUploadFiles event by adding an event listener to the choose file button, but in this case i am not able to get all the call backs which are available survey-react-ui's onUploadFiles.
Share Improve this question asked Mar 13 at 11:00 Abdulbasit KhaleeqAbdulbasit Khaleeq 447 bronze badges 3 |1 Answer
Reset to default -1I figured out, latest version does not support bootstrap. when i started updating 4 years old version to 1.12.26, documentation stated that bootstrap support is obsolete, but they also provided how to apply bootstrap them. as per surveyjs documentation they update version every 2 weeks, in version 1.12.27 and 2.0.0 they removed it completely.
the issue was that they have not handled file upload case for bootstrap and that's why the event was not working.
if someone is looking to migrate or update version and using bootstrap, they have to choose one of their provided theme and you can customize that theme to match your website theme.
本文标签: javascriptsurveyreactui onUploadFiles not triggering on choose file button file pickedStack Overflow
版权声明:本文标题:javascript - survey-react-ui onUploadFiles not triggering on choose file button file picked - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744705675a2620828.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
storeDataAsText
isfalse
This is just a pointer, but once you share your JSON and your JavaScript, we can help pretty fast – Kung Func Commented Mar 14 at 8:55