这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@lucs7
Copy link
Contributor

@lucs7 lucs7 commented Jul 9, 2025

  1. Fix for [BUG] DatePicker: Uncaught TypeError #671 padStart TypeError on date selection when logged out

This PR resolves a bug where clicking on a calendar date while logged out causes the following JavaScript error:

Uncaught TypeError: (inst.selectedMonth + 1).padStart is not a function

This commit ensures padStart() is called on a string, not a number, by explicitly converting the number:

(inst.selectedMonth + 1).toString().padStart(2, '0')

  1. Adjusting css to enable datepicker styling

Small overwrite for jquery ui to make datepicker work with the theming

Resolves a bug where clicking on a calendar date while logged out causes
the following JavaScript error:

  Uncaught TypeError: (inst.selectedMonth + 1).padStart is not a function

Ensure padStart() is called on a string, not a number, by explicitly converting the number:

  (inst.selectedMonth + 1).toString().padStart(2, '0')

Closes: LibreBooking#671
@JohnVillalovos JohnVillalovos merged commit 1affa50 into LibreBooking:develop Jul 9, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants