You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting: TabbedForm onChange logic does not seem to work, so that I can get the current tabIndex (unless there is another way to achieve this)
What happened instead:
The onChange function is not triggered
Steps to reproduce:
This is how I have the logic setup:
<TabbedForm
sanitizeEmptyValues
defaultValues={getDefaultValues({})}
tabs={
<TabbedFormTabs
onChange={(tabIndex) => {
console.log('log1-tabIndex2', tabIndex);
setActiveTab(tabIndex);
}}
/>
}
>
// ... more code here, with tabs, etc.
I believe the onChange will never be triggered, because you override this with a specific handleChange function which does not have a onChange() call at the end:
Environment
React-admin version: "^5.2.1"
Last version that did not exhibit the issue (if applicable):
React version: "^18.3.1"
Browser: N/A
Stack trace (in case of a JS error):
The text was updated successfully, but these errors were encountered:
What you were expecting:
TabbedForm
onChange logic does not seem to work, so that I can get the current tabIndex (unless there is another way to achieve this)What happened instead:
The
onChange
function is not triggeredSteps to reproduce:
This is how I have the logic setup:
I believe the
onChange
will never be triggered, because you override this with a specifichandleChange
function which does not have aonChange()
call at the end:Environment
The text was updated successfully, but these errors were encountered: