Skip to content

Date input component not displaying correctly when view in mobile device #9215

@yong2579

Description

@yong2579

What you were expecting:
DateInput / DateTimeInput component are rendered correctly when view in mobile device

image

What happened instead:
DateInput / DateTimeInput component is cut off

image

Steps to reproduce:
To reproduce, simply navigate to https://marmelab.com/react-admin-demo/#/commands using a mobile device (e.g. iphone), then select the filter button and select the filter "Passed Since".

Miscellaneous
I realise if you view it from chrome on a desktop and emulate an iphone device using developer tools, you can see the expected behavior

Additionally if you select a date and rotate the iphone to landscape and rotate it back to portrait, the expected behavior is also achieved

For reference I have also seek for help in stackflow via https://stackoverflow.com/questions/76960417/react-admin-date-input-component-not-displaying-correctly-when-view-in-mobile-de

Note that so far this only happen on mobile device, tested windows surface and is ok.

Also tested using a mac machine running xcode to emulate iphone and the date input component is also cut off.

Environment

  • React-admin version: The version as per react-admin demo
  • Last version that did not exhibit the issue (if applicable): Unknown, new to react-admin and evaluating for new project
  • React version: The version as per react-admin demo
  • Browser: safari 16.6 on iphone, chrome 116.0.5845.118 on iphone, edge and chrome on huawei p20
  • Stack trace (in case of a JS error): Nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions