Code Monkey home page Code Monkey logo

Comments (10)

hawkett avatar hawkett commented on September 2, 2024 1

Thanks @notwaldorf - much appreciated! You guys are doing an amazing amount of stuff for such a small team.

from iron-form.

PPCM avatar PPCM commented on September 2, 2024 1

I have the same issue in Polymer 2, it reset correctly paper-input elements with name parameter set.
I have a confirm password without a name, and it doesn't reset it value

Then, I have other named elements like paper-dropdown-menu containing a paper-listbox which is not reseted

from iron-form.

kishaningithub avatar kishaningithub commented on September 2, 2024

Im also facing this issue!. Its interesting to note that its been 3 months since this issue was posted. Still no response :-(

from iron-form.

notwaldorf avatar notwaldorf commented on September 2, 2024

I'm sorry, I haven't gotten around to looking at it. There were a billion other higher priority issues that got in the way. I'll try to take a look this week

from iron-form.

notwaldorf avatar notwaldorf commented on September 2, 2024

@hawkett Thanks for the kind words. They're very appreciated 💖

from iron-form.

sjmoreno avatar sjmoreno commented on September 2, 2024

@notwaldorf Thanks a lot for this fix! Trying to reset a form using paper-input and this works great when all the element values have changed but it is not triggering the notify to the parent when el.value === this._customElementsInitialValues[i]. Doing some local testing seems like something like what I have below (not optimized, just nulling out as a proof of concept) does the trick:

   for (var el, i = 0; el = this._customElements[i], i < this._customElements.length; i++) {
      if (el.disabled)
        continue;
      if (this._usesCheckedInsteadOfValue(el)) {
        el.checked = this._customElementsInitialValues[i];
      } else {
        if(el.value === this._customElementsInitialValues[i]) {
          //Need to force a change on value to trigger the notify to `paper input`
          //or somehow fire some notification.
          el.value = null;
        }
        el.value = this._customElementsInitialValues[i];
      }
    }

Is opening a new issue best way to address this? Can also submit a pull request.

from iron-form.

Typel avatar Typel commented on September 2, 2024

I am experiencing this issue while attempting to reset a gold-email-input that is enclosed within an iron-form. It appears to be running one last auto-validation after the form is reset, causing it to turn red as if there was an error.

Is .reset() supposed to clear auto-validation states as well?

from iron-form.

notwaldorf avatar notwaldorf commented on September 2, 2024

Re-opening, since paper-inputs still don't see like they reset too well: http://jsbin.com/joweso/edit?html,output

from iron-form.

dman777 avatar dman777 commented on September 2, 2024

I noticed that after form reset, the paper-radio buttons and paper-dropdown-menu breaks...the new form does not display default selections for these elements. Using "1.1.4" version.

from iron-form.

xelra avatar xelra commented on September 2, 2024

I'm seeing this issue in Polymer 2 with paper-input. When the form resets, it clears all the values, but the label stays afloat.

from iron-form.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.