0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed default tag override not working on edits for html input component

no refs

- we added a default tag override for basic html input component, but the edit mode was still using `p` as the tag irrespective of default set, which caused switching back to p tag when editing the component
This commit is contained in:
Rishabh 2021-11-12 16:30:53 +05:30
parent 57b318de52
commit 5e01b94bb1

View file

@ -59,7 +59,7 @@ export default Component.extend({
let cards = this.cards || [];
return assign({
html: `<p>${this.cleanHTML || ''}</p>`,
html: `<${this.defaultTag}>${this.cleanHTML || ''}</${this.defaultTag}>`,
placeholder: this.placeholder,
spellcheck: this.spellcheck,
autofocus: this.autofocus,