Menu

@DescriptionsList bug regarding OnChange

2016-12-29
2017-01-03
  • Carlson W. Filho

    OX 5.6
    I have a concrete scenario, where I have a dialog with 2 fields. The first one is a descriptionslist and the second one a numeric field. I have an OnChange attached to this descriptionslist. When the dialog is shown, if I click the arrow to open the descriptionslist, my application open the list but fires an onchange to the server, closing the list. I need to click again to open it.
    I fixed this by changing the descriptionsEditor.js:21 to

    if ($(event.target).val() === "" && ($(event.target).next().val() !== "" || $(event.target).next().next().val() !== "")) { 
    

    Please consider fixing this behaviour on next version.
    Thanks!

     
  • Javier Paniza

    Javier Paniza - 2017-01-03

    Hi Carlson,

    Add it as bug I'll try to fix it for 5.6.1.


    Help others in this forum as I help you.

     
  • Carlson W. Filho

    Hi Javier, I forgot to check your answer. I see that this problem is happening, even in Nobeek you can see it. If you click on the "Add referente" button, the first descriptionslist needs to be clicked twice. . I will add it as a bug

     

Log in to post a comment.