Giter Club home page Giter Club logo

Comments (4)

Maze-fr avatar Maze-fr commented on July 20, 2024

I reproduced the problem in another way.
This time, it's not only "true / false" radio button, but all the radio buttons that trigger the problem.

In my workflow, I create a new record from an existing one (still same pages as below).
So, here is what I do :

list page -> detail page (of one record) -> click to duplicate -> foward to creation page, filling the new model with the other's values -> fill what's left in the form -> submit the form -> go back to the list

When I do that manualy, it works, no problem.
But when I do that in my UT, as it is automated, it submits the form when "run.next" is still not performed, and I have the error.

Of course, all tests I do after "submit" are in a "andThen".
I guess it means qunit don't consider radio buttons "run.next" before to do what is in the "andThen".

PS : I managed to find a "fix" : I have to do something like that when I save my model :

model.save().then(function () {
    Ember.run.next(...[uses a flashMessages to show success]

I wonder why radio buttons run loop is not finished when I save my model, as it has already been validated by ember-validations.

from ember-radio-button.

raycohen avatar raycohen commented on July 20, 2024

Hi @Maze-fr - It sounds like you are using version 0.1.3 (or lower) of ember-radio-button.

We are now on version 1.0.5 and I think some of the changes we made could help with these issues. Are you using htmlbars? If so, can you try it out with the newer code?

from ember-radio-button.

Maze-fr avatar Maze-fr commented on July 20, 2024

As I checked the version, I noticed a HUGE misstake...
I use ember-radio-buttons... I am so deeply sorry...

from ember-radio-button.

raycohen avatar raycohen commented on July 20, 2024

No problem :)

from ember-radio-button.

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.