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

Form arguments in custom buttons not triggered when dataTable changes in modal dialog #2501

Open
hlayisanimazuze opened this issue Dec 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hlayisanimazuze
Copy link
Collaborator

A button should be enabled or disabled based on the value selected in the table. When a row is selected, the form arguments are not being triggered. However, they are triggered when a form field is changed after selecting the record.
NB: This is affecting all the properties within the custom buttons

Steps to reproduce the behavior:

  1. Navigate to: Test Module Table.
  2. Open the browser console.
  3. Click the Add button.
  4. Clear all logs in the console.
  5. Enter values in the form fields.
  6. Clear the logs in the console again.
  7. Select a checkbox for any record in the data table.
  8. Check if the logs are triggered when a row is selected.
  9. If logs are not triggered, make a change in the Amount field of the form.
  10. Observe the logs now being triggered.

Actual Results
The form arguments are not triggered when a row is selected in the data table.
The button's state is not updated unless there is a change in the form fields after selecting a record.

Expected behavior
The interaction between the data table selection and form context should work seamlessly without additional user input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants