We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
ConfigProvider.getContext() will losing its cached context data after a portal component (e.g.: Dialog.show()) was unmounted.
ConfigProvider.getContext()
Dialog.show()
Version of the Next Components
^1.9.15
Reproduce URL
https://codepen.io/anon/pen/vQgmbP?&editors=0010
To Reproduce
<ConfigProvider>
{ Dialog: { ok: 'OK', cancel: 'Cancel' } }
Dialog.confirm
Expected behavior
The text of the modal's button always be OK and Cancel, but it'll be 确定 and 取消 except first mounting.
OK
Cancel
确定
取消
The text was updated successfully, but these errors were encountered:
fix(ConfigProvider): Isolate multiple context data
5afa5df
Closes #43
tao1991123
No branches or pull requests
Describe the bug
ConfigProvider.getContext()
will losing its cached context data after a portal component (e.g.:Dialog.show()
) was unmounted.Version of the Next Components
^1.9.15
Reproduce URL
https://codepen.io/anon/pen/vQgmbP?&editors=0010
To Reproduce
<ConfigProvider>
to wrap the app.<ConfigProvider>
with{ Dialog: { ok: 'OK', cancel: 'Cancel' } }
Dialog.confirm
or the other method which do create a portal modalDialog.confirm
againExpected behavior
The text of the modal's button always be
OK
andCancel
, but it'll be确定
and取消
except first mounting.The text was updated successfully, but these errors were encountered: