Thread Starter
mnymn
(@mnymn)
Some additional information.
When clicking the ‘Html code’ checkbox, following error is returned in the browser console:
Uncaught TypeError: e is undefined
documentClick https://<URL>/wp-content/plugins/ulisting/assets/js/admin/dist/app.js?ver=2.1.1:2
Hello @mnymn
Thank you for reaching out and your report!
We appreciate the valuable information you provide. We determine some conflict in the plugin, with the HTML field for a now. This issue has been sent to the developers’ team. The task was created and the team is working on this issue. It will be fixed in one of the upcoming updates.
Kind regards
Here are the modifications:
assets/js/admin/src/components/listing-types/tabs/builder/control-panel/textarea-field.js
Fixed bug in Single Item Display Layout page which caused a HTML code, Text Area input to be displayed as a Checkbox input type. Prevented insertion of custom HTML in layout.
Replace this:
<div class="form-group">
<label class="ulisting-checkbox">
<input type="checkbox" :true-value="1" :false-value="0" v-model="data[field.name]" />
<span></span>
{{field.label}}
</label>
</div>
With this:
<div class="form-group">
<label>{{field.label}}</label>
<textarea class="form-control" v-model="data[field.name]"></textarea>
</div>
assets/js/admin/dist/app.js
Replace:
"textarea-field":{data:function(){return{}},mounted:function(){},methods:{},props:{id:{default:0},data:{default:""},field:{default:""}},watch:{data:function(t){this.$emit("input",t)}},template:'\n\t\t<div class="form-group">\n\t\t\t<label class="ulisting-checkbox">\n\t\t\t\t<input type="checkbox" :true-value="1" :false-value="0" v-model="data[field.name]" />\n\t\t\t\t<span></span>\n\t\t\t\t{{field.label}}\n\t\t\t</label>\n\t\t</div>\n\t'}
With this:
"textarea-field":{data:function(){return{}},mounted:function(){},methods:{},props:{id:{default:0},data:{default:""},field:{default:""}},watch:{data:function(t){this.$emit("input",t)}},template:'\n\t\t<div class="form-group">\n\t\t\t<label>{{field.label}}</label>\n\t\t\t\t<textarea class="form-control" v-model="data[field.name]"></textarea>\n\t\t</div>\n\t'}
Hi dear!
We are glad that you have modified it on your own. The core of the issue will be tested by our testing department and informed to our devs team. The needed fixes will be integrated in the future updates
Cheers
@mdabrowski78 thank you very much for the fix. now im able to use html separators and more again.
Hello @ivaann21 ,
I am glad the problem is solved now by applying the fix above. The needed fix will be available globally in future updates.
Kind regards
This is still an issue for me using the Free version. Has this fix not been implemented into Ulisting plugin yet?
This fix worked perfectly, thank you!
Hi, @schiemerdesignstudio
We are glad that this issue has been resolved.
Please feel free to create a new topic if you have any additional questions.
Best regards!