-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Cannot override global Notification/Message placement #4323
Comments
Have you read about this? If you want to change its position dynamically, you should use Check this modified version: https://stackblitz.com/edit/angular-i7ihr3-4ggx5w?file=src/app/app.component.ts |
@wendzhue yes I had read that paragraph, and that's basically why I opened this issue. I think the problem is the IDK if I explained myself very well, let me know. |
I opened a PR to change the related docs. Hope it helps. #4327 |
@wendzhue Mmh yeah I think we misunderstood each other. Let's say I want all notifications to be displayed on top-center, thus I set a custom global configuration. Is this more clear? |
@lppedd Currently and before, you cannot have a notification whose position is different from others'. PR is welcome! (And we need another issue to disuccess about the feature request.) Actually, this feature has already been implemented in the React version of Ant Design. |
I am going to close this issue since #4327 was merged. Please open another issue and we can have a furthur discussion about that feature. Thank you! |
Reproduction link
https://stackblitz.com/edit/angular-i7ihr3
Steps to reproduce
Just change the location from the picker. You'll notice it doesn't take effect.
What is expected?
The notification position should be overridable via
What is actually happening?
The global configuration always overwrite the inputted one in
The fix should be pretty straighforward, however it might mean permanently overriding the global value, not only for the single call.
The text was updated successfully, but these errors were encountered: