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

Binding to input field with type='date' doesn't work in Chrome #76

Closed
ghost opened this issue Sep 23, 2012 · 2 comments
Closed

Binding to input field with type='date' doesn't work in Chrome #76

ghost opened this issue Sep 23, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 23, 2012

Chrome lets you put type='date' on an input field and the browser will show native date picker.

When you try to bind JavaScript object to the input field with type='date' no value fills in. When you remove type='date' from the form field everything works fine.

I'm using the jQuery plugin of transparency (jQuery 1.8.2).

<form class='bug_test'>
    <input type="date" id="date_type"/>
    <input id="no_type"/>
</form>
$(function() {
    $('.bug_test').render({ 
        date_type: '10/12/2011',
        no_type: '10/12/2011'
    });
});

I actually tried both regular String and Date object to bind to field.

@ghost
Copy link
Author

ghost commented Sep 23, 2012

Trying to set the value of the field with jQuery alone doesn't work, either a bug with Chrome or jQuery... Closing this out.

@ghost ghost closed this as completed Sep 23, 2012
@ghost
Copy link
Author

ghost commented Sep 23, 2012

Alright so here is the real problem...

"When setting the input.value programmatically, the value accepts only yyyy-mm-dd style regardless of the presentation format for both the initial value and the JavaScript injected value."

This issue was closed.
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

0 participants