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

Only work once on firefox using Angular #581

Open
luizluan opened this issue Jan 19, 2017 · 2 comments
Open

Only work once on firefox using Angular #581

luizluan opened this issue Jan 19, 2017 · 2 comments

Comments

@luizluan
Copy link

luizluan commented Jan 19, 2017

It only works once, I open the modal the inputs appear correctly (date), then I close the modal and open again the inputs do not work as they should, no error appears in the javascript just a css error but i think is not this.

I using C# MVC asp.net

$(document).ready(function () {
webshim.activeLang(navigator.language);
webshims.setOptions('waitReady', false);
webshims.setOptions('forms-ext', { types: 'date' });
webshims.polyfill('forms forms-ext');

    $('input:invalid').each(function () {
        $(this).after($.prop(this, 'validationMessage'));
    });
});

My application is SPA

@luizluan luizluan changed the title Widget font error on firefox Widget font error on firefox using Angular Jan 19, 2017
@luizluan luizluan changed the title Widget font error on firefox using Angular Only work once on firefox using Angular Jan 19, 2017
@Weksley
Copy link

Weksley commented Feb 11, 2017

You will need to update fields after you load it.
run this on the bottom of the page that content the date field.
$("input[type=date]").updatePolyfill();

@supratim3
Copy link

We have the exact same issue. Using the trick mentioned by Weksley breaks the page alignment.

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

3 participants