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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
This is what fixed the tooltip JS error. Before we upgraded Phoenix, this produced data-html="true" in the resulting HTML. After the upgrade this was merely producing data-html, with no value. This fix brings it back to rendering data-html="true".
I actually did figure out where this changed - in the phoenix_html dependency version 3.3. From the CHANGELOG:
Fix a bug where nil/false/true attributes in aria/data/phx would emit empty or literal values, such as "true" and "false". This release aligns them with all other attributes so both nil and false emit nothing. true emits the attribute with no value.
8cfc340
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what fixed the tooltip JS error. Before we upgraded Phoenix, this produced
data-html="true"
in the resulting HTML. After the upgrade this was merely producingdata-html
, with no value. This fix brings it back to renderingdata-html="true"
.I actually did figure out where this changed - in the
phoenix_html
dependency version 3.3. From the CHANGELOG: