Giter Site home page Giter Site logo

Comments (4)

czosel avatar czosel commented on June 10, 2024

That should be absolutely possible with our custom components integration. The key is calling fi.update which will update the value in your model.

{{#f.input label="Favorite Color" name="color" as |fi|}}
  {{#power-select options=names onchange=fi.update as |name|}}
    {{name}}
  {{/power-select}}
{{/f.input}}

(I didn't test this, but it should be a good starting point)

Optionally, you can also call fi.setDirty to mark the input as dirty (i.e. show validation errors).

In case you tried this already and/or it doesn't work like this, please share some code - i'd be happy to take a look at it.

from ember-validated-form.

czosel avatar czosel commented on June 10, 2024

I'll close this since it hope it is resolved - feel free to reopen if not.

from ember-validated-form.

tinyweasel avatar tinyweasel commented on June 10, 2024

Many months later I'm having an issue where I've set onblur=fi.setDirty, but the problem is, if I load the form with values pre-selected, and I de-select them, it doesn't get set to dirty and I don't get the validation error until I activate the dropdown. Any ideas of a fix?

from ember-validated-form.

czosel avatar czosel commented on June 10, 2024

Hi @tinyweasel!
I'm not sure if i understand the issue completely - can you try to create a reproduction in a twiddle? You could use this one as a starting point.
Thanks!

from ember-validated-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.