Javascript Priming Upgrade-Button.html:2错误:找不到不同的支持对象';浮动:左';
我刚开始将一个项目升级到Priming 8.1.1,它似乎不再支持按钮上的内联Javascript Priming Upgrade-Button.html:2错误:找不到不同的支持对象';浮动:左';,javascript,angular,primeng,Javascript,Angular,Primeng,我刚开始将一个项目升级到Priming 8.1.1,它似乎不再支持按钮上的内联样式标记 我在所有带有style='float:left的按钮中发现以下错误: Button.html:2 ERROR Error: Cannot find a differ supporting object 'float: left;' at KeyValueDiffers.find (core.js:28471) at NgStyleR2Impl.setNgStyle (common.js:588
样式标记
我在所有带有style='float:left
的按钮中发现以下错误:
Button.html:2 ERROR Error: Cannot find a differ supporting object 'float: left;'
at KeyValueDiffers.find (core.js:28471)
at NgStyleR2Impl.setNgStyle (common.js:5884)
at NgStyle.set ngStyle [as ngStyle] (common.js:6161)
at updateProp (core.js:32189)
at checkAndUpdateDirectiveInline (core.js:31867)
at checkAndUpdateNodeInline (core.js:44367)
at checkAndUpdateNode (core.js:44306)
at debugCheckAndUpdateNode (core.js:45328)
at debugCheckDirectivesFn (core.js:45271)
at Object.eval [as updateDirectives] (Button.html:2)
这在以前的版本8.0.3上运行良好
我尝试了几种不同的在线样式,但仍然没有运气
这是导致问题的常见标签:
<p-button (onClick)="clickRefresh()"
icon="pi pi-refresh"
label="Refresh"
style="float: left;"
styleClass="ui-button-secondary"
></p-button>
现在您必须将字符串更改为对象,我认为这是一个中断更改
现在您必须将字符串更改为对象,我认为这是一个中断更改