Author Topic: Date field freezing when typing a date manually  (Read 1311 times)

Offline ottyacat

Date field freezing when typing a date manually
« on: November 09, 2016, 01:06:18 AM »
When manually typing a date into a date field, the whole browser tab locks up for an extended period of time.

Steps to reproduce:
  • Open budget
  • Click on account
  • Click add new transaction
  • Start typing 15/01/2016, I can only get to 15/01/20 before it locks up for 10-30 seconds before becoming responsive again. It then appears to work ok until you refresh the browser or close the tab and the delay occurs again.
Tested on Chrome, Firefox, Edge on Windows on multiple computers, same on all.
« Last Edit: November 09, 2016, 01:10:18 AM by ottyacat »

Offline Alex

Re: Date field freezing when typing a date manually
« Reply #1 on: November 09, 2016, 08:21:23 AM »
Hi @ottyacat

Can you let me know the locale you're using?

Thanks
Alex
I am the Financier owner/admin/coder dude.

Offline ottyacat

Re: Date field freezing when typing a date manually
« Reply #2 on: November 09, 2016, 12:53:50 PM »

Hi @Alex

English\Australia

Offline Alex

Re: Date field freezing when typing a date manually
« Reply #3 on: November 10, 2016, 04:48:42 PM »
Well, that's a fun issue. It's trying to get the category balances for a year that's XXX (like literally A.D. 123) which is causing perf issues.

I made a quick fix that will restrict dates to > 1970. :)

https://trello.com/c/SmaSo0bA/264-don-t-allow-dates-1970-to-be-valid
I am the Financier owner/admin/coder dude.

Offline ottyacat

Re: Date field freezing when typing a date manually
« Reply #4 on: November 10, 2016, 06:38:28 PM »
Well, that's a fun issue. It's trying to get the category balances for a year that's XXX (like literally A.D. 123) which is causing perf issues.

I made a quick fix that will restrict dates to > 1970. :)

https://trello.com/c/SmaSo0bA/264-don-t-allow-dates-1970-to-be-valid

Oh yea, that will do it! Thanks for looking into it :)

Offline Alex

Re: Date field freezing when typing a date manually
« Reply #5 on: November 14, 2016, 05:41:29 PM »
@ottyacat Should be good! LMK if it is not fixed for you.
I am the Financier owner/admin/coder dude.

Offline ottyacat

Re: Date field freezing when typing a date manually
« Reply #6 on: November 15, 2016, 04:05:35 AM »
Thanks mate, looks good!