maxgalbu / nightwatch-custom-commands-assertions

Nightwatch.js custom commands and assertions
MIT License
136 stars 32 forks source link

setSelect2Data trigger problem #10

Closed skoschik closed 9 years ago

skoschik commented 9 years ago

Any code that pulls 'val' from the select2 change event object will not run with the setSelect2Data command. To fix, and kill a line of code, you can do:

$(selector).select2("data", data, true); //$(selector).trigger("change"); // not needed when true is set above.

Thanks

skoschik commented 9 years ago

okay, so i didn't realize i was using an older version of select2 (3.4.5). please ignore this issue as i can't replicate it on the newest version.