Paper button rendering error

I have two identical buttons for paper, except where:

<paper-button raisedButton
  id='rendered'
  label='patient'
  on-click='{{clickHandler}}'></paper-button>

<paper-button raisedButton
  id='no-render'
  label='patient'
  on-click='{{clickHandler}}'>
</paper-button>

The first button displays with its text label, the second without the text label. The only difference is closing the tag. I would expect the second button to display as the first, but it is not. This is mistake?

Another observation is that the default button shortcut is uppercase. Can this be changed?

I am using Polymer v 0.12.0-dev and Dart Editor version 1.6.0.dev_03_00 (DEV) Dart SDK version 1.6.0-dev.3.0.

+4
source share
1 answer

( ),

Using textContent to label the button is deprecated. Use the "label" property instead 

, <paper-button> , - , , , .
TextNode, .

, , , , .

https://github.com/Polymer/paper-button/issues/12

+1

Source: https://habr.com/ru/post/1548228/


All Articles