Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio buttons not being checked when using mfp plugin login functionality. #1547

Closed
sruthakeerthikotla opened this issue May 13, 2017 · 2 comments

Comments

@sruthakeerthikotla
Copy link

When the MobileFirst Platforms plugin cordova-plugin-mfp 's WLAuthorizationManager.login() function is used, the radio buttons are not getting checked. The stack trace between a working app and an app that does not work show that a call to the "onInvokeTask" in the main.js is not being made from the polyfills.js. (The sample app can be found in the issue mentioned here : http://stackoverflow.com/questions/43726154/unable-to-toggle-between-radio-button-after-authenticating-user-using-mfp-8-0 ). Have attached the 2 logs with and without login. Also when debug points are added to slow down the running of the main.js at various points, the checkboxes are getting checked properly.
withlogin logs
withoutlogin logs

@ihadeed
Copy link
Collaborator

ihadeed commented May 17, 2017

This is not a plugin that we support at Ionic Native. I suggest seeking help at the plugin's repo.

@ihadeed ihadeed closed this as completed May 17, 2017
@sruthakeerthikotla
Copy link
Author

sruthakeerthikotla commented May 18, 2017

I have added a time delay of millisecond to the below function that ionic creates in the main.js and the checkboxes selections are rendered properly.

function test2()
{
    setTimeout(function(){ 
    }, 1);  

}
/**
 * @param {?} view
 * @return {?}
 */
function checkAndUpdateView(view) {
    try{
    if( view.component.navCtrl._ids == 1 && view.component.navCtrl.id == "n4"
    )
    {
        test2();
    }
        
    }catch(e)
    {
    }
Services.updateDirectives(view, 0 /* CheckAndUpdate */);
    ...
    ...

Doesn't this mean that there is a threads synchronization issue in ionic's view rendering?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants