You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've had an issue when trying to process boolean values when updating components in AEM. When switching boolean values in the dialog, trying to set it to false does not send false but instead sends an empty string ''.
The dialog sets the values to be boolean, the sling model sets it to boolean, and the .model.json also shows the update as a boolean, but the angular component receives the string.
Update in Network banner_hero.model.json?_=1645206630867 {"title":"hello world","showPattern":false,":type":"eds-aem-app/components/banner-hero"}
But the console logs show pattern true {value: ''}
I would expect that the angular component is sent false instead of an empty string.
I've added some code below to try and replicate, I've got no idea how to package stuff up.
Describe the bug
I've had an issue when trying to process boolean values when updating components in AEM. When switching boolean values in the dialog, trying to set it to
false
does not sendfalse
but instead sends an empty string''
.The dialog sets the values to be boolean, the sling model sets it to boolean, and the
.model.json
also shows the update as a boolean, but the angular component receives the string.Update in Network banner_hero.model.json?_=1645206630867
{"title":"hello world","showPattern":false,":type":"eds-aem-app/components/banner-hero"}
But the console logs
show pattern true {value: ''}
I would expect that the angular component is sent
false
instead of an empty string.I've added some code below to try and replicate, I've got no idea how to package stuff up.
Package version
@adobe/[email protected]
@adobe/[email protected]
@adobe/[email protected]
@angular/*@13.2.0
To Reproduce
Dialog
The text was updated successfully, but these errors were encountered: