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

[sitecore-jss-angular] Fix default empty field components to not render unwanted wrapping HTML tags #1937

Merged
merged 11 commits into from
Oct 2, 2024
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Our versioning strategy is as follows:
* `[templates/nextjs]` `[templates/react]` `[templates/angular]` `[templates/vue]` Fixed an issue when environment variable is undefined (not present in .env), that produced an "undefined" value in generated config file ([#1875](https://github.com/Sitecore/jss/pull/1875))
* `[templates/nextjs]` Fix embedded personalization not rendering correctly after navigation through router links. ([#1911](https://github.com/Sitecore/jss/pull/1911))
* `[template/angular]` Prevent client-side dictionary API call when SSR data is available ([#1930](https://github.com/Sitecore/jss/pull/1930)) ([#1932](https://github.com/Sitecore/jss/pull/1932))
* `[sitecore-jss-angular]` Fix default empty field components to not render the unwanted wrapping tags ([#1937](https://github.com/Sitecore/jss/pull/1937))

addy-pathania marked this conversation as resolved.
Show resolved Hide resolved

### 🎉 New Features & Improvements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Component } from '@angular/core';
* Default component that will be rendered in pages when image field is empty.
*/
@Component({
selector: 'sc-default-empty-image-field-editing-placeholder',
selector: '[sc-default-empty-image-field-editing-placeholder]',
template: `
<img
alt=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Component } from '@angular/core';
* Default component that will be rendered in pages when field is empty; applies for text, richtext, date and link fields.
*/
@Component({
selector: 'sc-default-empty-text-field-editing-placeholder',
template: '<span>[No text in field]</span>',
selector: '<span>[sc-default-empty-text-field-editing-placeholder]</span>',
illiakovalenko marked this conversation as resolved.
Show resolved Hide resolved
template: '[No text in field]',
})
export class DefaultEmptyFieldEditingComponent {}
Loading