• Resolved FeralReason

    (@feralreason)


    Still doing testing on my localhost test website — WordPress 6.2.2 running PHP 8.1. If you code an HTML field, using hasDatepicker as a 2nd class, it disables WP Datepicker on all fields within the form. For example, try this:

    <input type="text" class="date-field hasDatepicker" /> 

    where “date-field” is specified in the Settings. (Doesn’t matter if hasDatepicker is specified in settings or not.)

    Note that this worked correctly in versions up through 1.9.9, but now seems to disable WP Datepicker. On the other hand, if I enter this:

    <input type="text" class="date-field anyclass" /> 

    WP Datepicker works fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    hasDatepicker will be inserted by the jQuery UI Datepicker, no need to insert this class manually.

    Thread Starter FeralReason

    (@feralreason)

    Ah – so they must have started that after your version 1.9.9. No problem – but in that case it might be good to include a warning in documentation somewhere that if someone adds this as a second class, WP datepicker is disabled. (It turns out this is cause of the problem that I wrote you about a year or more ago.)

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    You are misunderstanding, actually you should never use the class “hasDatepicker” because when a field turns into a calendar field so this class automatically added there. Please observe this change if you are familiar with HTML inspect element in browser.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“hasDatepicker” cannot be used as a second class’ is closed to new replies.