-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ConfirmDialog:confirmDialog method in unstyled mode, the pop-up window style not apply #5656
Comments
Should confirmProps and props be merged? const getCurrentProps = () => Object.assign(props,confirmProps.current)
const getPropValue = (key) => Object.assign(props,confirmProps.current)[key]; |
@kl-nevermore is this still happening in the main branch? I thought I had fixed this before when someone reported it but i could be wrong? |
@melloware |
OK then I definitely did not fix it 😄 |
After merging props, it can work, but I'm not sure if it's the correct solution |
well submit a PR please I can take a look. |
Actually I think this PR addresses the ConfirmDialog issue. Can you review? |
|
@kl-nevermore i just tried your sandbox with 10.3.0 and it has the same issue? https://stackblitz.com/edit/react-hzzvhp-6btcgt?file=src%2Findex.js,src%2FApp.js |
Had to revert this fix it broke the showcase. |
@melloware |
OK well if you try with the current showcase you will see the issue I am seeing if you want to take another look! |
I found #5401 was rolled back and many other changes were also lost in 10.3.0 |
@kl-nevermore let's revisit this now that the main branch is up to date. |
@melloware |
like unstyled, passed const rootProps = mergeProps(
{
visible: visibleState,
className: classNames(getPropValue('className'), cx('root')),
footer,
onHide: hide,
breakpoints: getPropValue('breakpoints'),
+ pt: props.pt,
- pt: currentProps.pt
unstyled: props.unstyled,
appendTo: getPropValue('appendTo'),
__parentMetadata: {
parent: metaData
}
},
ConfirmDialogBase.getOtherProps(currentProps)
);
|
If modify it as before, will throw #5767 If not use args,when multiple instances, we don't know which one to use |
I thought only one confirm dialog could be on the screen at once? But I guess the could be stacked but from a UI perspective only 1 confirm dialog at a time makes more sense to me. |
OK I have fixed #5770 so this should allow you to continue |
The latest fixes have been applied in 10.5.1 |
Describe the bug
confirmDialog method in unstyled mode, the pop-up window style does not apply
Reproducer
https://stackblitz.com/edit/react-hzzvhp?file=src%2Findex.js,src%2FApp.js
PrimeReact version
10.2.1
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: