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

Error metadataBuilder.addDate is not a function displayed when viewing disabled date function and disabled time function code editor in the DateField component #2441

Closed
hlayisanimazuze opened this issue Nov 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working ready for testing urgent

Comments

@hlayisanimazuze
Copy link
Collaborator

hlayisanimazuze commented Nov 25, 2024

When attempting to view or edit the disabled date function in the code editor for the DateField component, an error message, metadataBuilder.addDate is not a function, is displayed

Steps to reproduce the behavior:

  1. Go to 'https://functional-adminportal-test.azurewebsites.net/shesha/forms-designer?id=2e6e54ac-338d-4f87-836e-be89bd134238'
  2. Open developer console
  3. Click on 'datefield' component
  4. Scroll down to 'custom visbilitiy' section and click on code editor for disabled date func/disabled time func property
  5. See error thrown on console: metadataBuilder.addDate is not a function

Expected behavior
The code editor should open without any errors, allowing users to view and modify the disabled date function as intended.

image

@hlayisanimazuze
Copy link
Collaborator Author

Related item: ##2384

@hlayisanimazuze hlayisanimazuze changed the title Error metadataBuilder.addDate is not a function displayed when viewing disabled date function code editor in the DateField component Error metadataBuilder.addDate is not a function displayed when viewing disabled date function and disabled time function code editor in the DateField component Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready for testing urgent
Projects
None yet
Development

No branches or pull requests

2 participants