iron-location icon indicating copy to clipboard operation
iron-location copied to clipboard

could not change property and url

Open hzmsrv opened this issue 8 years ago • 2 comments

Description

Expected outcome

Actual outcome

Live Demo

Steps to reproduce

Browsers Affected

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

<dom-module id="app-shell">
  <style>

  </style>
  <template>
    <iron-location path="{{path}}" query="{{query}}" hash="{{hash}}"> </iron-location>
<some query="{{query}}" > <some>
  </template>
</dom-module>

<script>
  Polymer({
    is: 'app-shell',
    properties: {
      query: {
        type: String,
        notify: true,
      },
      path: String,
    },

    ready: function () {
      this.query="fsdf=fasd";
      this.async(function () {
              this.set('query', "?");
      this.query = this.query + "aaa";
      this.set('path', this.path + '?' + 'aa');
      });
    },

  });

</script>

hzmsrv avatar Mar 23 '17 06:03 hzmsrv

i found that is the elements problems. its status property all are in attached() . when its parent is ready it still not this._initialized = true and this._dontUpdateUrl = false;

hzmsrv avatar Mar 23 '17 09:03 hzmsrv

and also it can not be changed inside the<some>

hzmsrv avatar Mar 23 '17 10:03 hzmsrv