mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[pickers] Disable the Text Feild in the MobileKeyboardView in Mobile Date picker is not working

Open sohaibnajjar opened this issue 2 years ago • 1 comments

Duplicates

  • [X] I have searched the existing issues

Latest version

  • [X] I have tested the latest version

Steps to reproduce 🕹

Link to live example: from mui-x page

https://codesandbox.io/s/keen-sound-ls070w?file=/demo.tsx

Steps:

  1. add disabled to the TextField in renderInput 2.click on the date picker modal
  2. change to the MobileKeyboardView
  3. type something it will change the value

Current behavior 😯

changeing disabled input

Expected behavior 🤔

not to change disabled input

Context 🔦

No response

Your environment 🌎

No response

Order ID 💳 (optional)

No response

sohaibnajjar avatar Feb 20 '23 12:02 sohaibnajjar

@sohaibnajjar Could you explain what are you trying to achieve by specifying disabled only on the rendered input? Doing this only the rendered input is aware, that it should be disabled. If you want to conditionally disable the picker, consider just using the disabled prop on the Picker component.

LukasTy avatar Feb 20 '23 13:02 LukasTy

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

github-actions[bot] avatar Feb 27 '23 14:02 github-actions[bot]