paper-input icon indicating copy to clipboard operation
paper-input copied to clipboard

`invalid-changed` event is fired only in Chrome

Open hyyan opened this issue 8 years ago • 2 comments

Description

The invalid-changed event is fired only in Chrome

Expected outcome

Event fired in all browsers

Actual outcome

Event fired only on chrome

Browsers Affected

  • [ ] Chrome
  • [x] Firefox
  • [ ] Safari 9
  • [ ] Safari 8
  • [ ] Safari 7
  • [x] Edge
  • [x] IE 11
  • [ ] IE 10

hyyan avatar May 31 '17 13:05 hyyan

Do you have a JSBin or some sample code I can look at? I think your setup depends here

notwaldorf avatar May 31 '17 17:05 notwaldorf

@notwaldorf as I can not share my whole element's code , I share the concept I am using in my element , maybe this can help

<dom-module id="my-element">
 <template>

  <paper-input label="Number" type="number" min="3" max="10" auto-validate>
  </paper-input>
  <paper-input always-float-label label="Floating label"></paper-input>

 </template>
 <script>
  Polymer({
   is: 'my-element',
   listeners: {
    'invalid-changed': '_onInvalidChangedListener'
   },
   _onInvalidChangedListener: function (e) {
       console.log(e.detail.value);
   }
  });
 </script>
</dom-module>

hyyan avatar Jun 01 '17 08:06 hyyan