Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input of one datepicker view get updated to another date picker view in layout. #1580

Closed
santosh-pingle opened this issue Sep 5, 2022 · 7 comments · Fixed by #1581
Closed
Assignees
Labels
effort:small Small effort - 2 days type:bug Something isn't working

Comments

@santosh-pingle
Copy link
Collaborator

santosh-pingle commented Sep 5, 2022

Describe the bug
If number of date pickers are added to the layout/form, and input is given to the one date picker view then same value get updated to the another random date picker from the layout.
Please refer attached video and questionnaire json for more information.

Screen.Recording.2022-09-05.at.11.53.49.AM.mov
{
  "resourceType": "Questionnaire",
  "item": [
    {
      "linkId": "1",
      "text": "When was your last menstrual period? (LMP)",
      "type": "date"
    },
    {
      "linkId": "1-most-recent",
      "text": "First day of most recent period",
      "type": "display"
    },
    {
      "linkId": "2-most-recent",
      "text": "First day of most recent period",
      "type": "display"
    },
    {
      "linkId": "3-most-recent",
      "text": "First day of most recent period",
      "type": "display"
    },
    {
      "linkId": "4-most-recent",
      "text": "First day of most recent period",
      "type": "display"
    },
    {
      "linkId": "5-most-recent",
      "text": "First day of most recent period",
      "type": "display"
    },
    {
      "linkId": "6-most-recent",
      "text": "First day of most recent period",
      "type": "display"
    },
    {
      "linkId": "7-most-recent",
      "text": "First day of most recent period",
      "type": "display"
    },
    {
      "linkId": "2",
      "text": "When was your last menstrual period? (LMP)-1",
      "type": "date"
    },
    {
      "linkId": "3",
      "text": "When was your last menstrual period? (LMP)-2",
      "type": "date"
    },
    {
      "linkId": "4",
      "text": "When was your last menstrual period? (LMP)-4",
      "type": "date"
    },
    {
      "linkId": "5",
      "text": "When was your last menstrual period? (LMP)-5",
      "type": "date"
    },
    {
      "linkId": "6",
      "text": "When was your last menstrual period? (LMP)-6",
      "type": "date"
    },
    {
      "linkId": "7",
      "text": "When was your last menstrual period? (LMP)-7",
      "type": "date"
    }
  ]
}

Component
SDC library

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Input of one date picker should not be updated to the another date picker view.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. Pixel4a emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.

@santosh-pingle
Copy link
Collaborator Author

santosh-pingle commented Sep 5, 2022

@aditya-07
Is this same kind of issue of #1537 which you already provided fix?
can you please verify once.

@santosh-pingle
Copy link
Collaborator Author

Same issue is also present in datetime picker view.

@santosh-pingle
Copy link
Collaborator Author

santosh-pingle commented Sep 5, 2022

@aditya-07
Copy link
Collaborator

aditya-07 commented Sep 5, 2022

@santosh-pingle Yes, it looks like the issue might be because of the check here and older state not getting cleaned up

@aditya-07
Copy link
Collaborator

@santosh-pingle Also check Date time picker as the same issue might be present there as well.

@jingtang10
Copy link
Collaborator

for the purpose of the video can you please remove the text display questions? it makes it so much easier to see.

@Tarun-Bhardwaj Tarun-Bhardwaj added type:bug Something isn't working Data capture effort:small Small effort - 2 days labels Sep 5, 2022
@santosh-pingle
Copy link
Collaborator Author

@santosh-pingle Also check Date time picker as the same issue might be present there as well.

yes, its present, I already mentioned in the previous comment. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:small Small effort - 2 days type:bug Something isn't working
Projects
Status: Complete
Development

Successfully merging a pull request may close this issue.

4 participants