Skip to content

2.4.8-p1 datepicker - position is wrong on touch devices #40083

@nikolaykravchenko

Description

@nikolaykravchenko

Preconditions and environment

  • Magento version: 2.4.8-p1

Steps to reproduce

  1. Use touch device. It can be mobile phone. Or you can use "Device preview" in Google Chrome.
  2. Go to magento admin and enable "Date of Birth" field for customer (Stores -> Configuration -> Customers -> Customer Configuration -> Name and Address Options -> Show Date of Birth = Optional).
  3. Login to customer account -> Account Information.
  4. Click on "Date of Birth" field.

Expected result

Datepicker appears right above or below "Date of Birth" input field.

Actual result

Sometimes datepicker appears too far from "Date of Birth" input field. It can be even outside the visisble screen.
Browser:

Image

Mobile phone:
Image

Additional information

The issue is in file lib/web/mage/calendar.js method _overwriteFindPos. If we comment everything - it works like it should.

Image

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.8-p1Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions