question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move `update` functionality to `setDate` and remove `update`

See original GitHub issue

As evidenced by a rash of related bugs (#399, #466, #544, #554, #556), people expect setDate to behave as update does (and, not coincidentally, how jQuery UI datepicker’s setDate does) – despite the documentation clearly stating that setDate “sets the internal date”, nothing more.

Issue Analytics

  • State:open
  • Created 10 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
omidkradcommented, Aug 5, 2013

I see no use case where you want to setDate without getting the UI updated.

0reactions
razvanphpcommented, Jun 8, 2015

Version 1.4.0

  • update function does not update the UI if you pass a date object (works only with a string)
  • update function never triggers changeDate
  • .datepicker('setDate', new Date()) does not return the object for chaining another datepicker method
  • setDate still does not highlight the current date for the inline version
Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Date setDate() Method
setDate () sets the day of the month of a date. Example 2. Set the day of the month to the last day...
Read more >
Date.prototype.setDate() - JavaScript - MDN Web Docs - Mozilla
The setDate() method changes the day of the month of a given Date instance, based on local time.
Read more >
How to make Javascript time automatically update
Use setTimeout(..) to call a function after a specific time. In this specific case, it is better to use setInterval(..) ...
Read more >
Getting started with the SQL UPDATE syntax
I have updated column Date in the below example where this column was not having any data before updating it using SQL UPDATE...
Read more >
Update only Year, Month or Day in a SQL Server Date
Let's use the DATEADD() function to update the year from the start_date to a different year. Use the below query to see if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found