Issue was detected in the "Serenity" theme vertion 6.6.0
PrimeReact version
6.6.0
React version
17.x
Browser(s)
ALL
Steps to reproduce the behavior:
1. Set input styling to "Filled"
2. Add any input(s) to the Sidebar or Dialog
3. Pay attention that input styling is not workin
Please, check this screenshot - https://imgur.com/nFDR77Z
Input styling is not working in Sidebard
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
Please make the following changes;
Fixed for the next version.
Best Regards,
Please make the following changes;
Code: Select all
import { DomHandler } from 'primeract/utils';
...
const onInputStyleChange = (inputStyle) => {
setInputStyle(inputStyle);
updateInputStyle(inputStyle);
}
const updateInputStyle = (_inputStyle) => {
if (_inputStyle === 'filled')
DomHandler.addClass(document.body, 'p-input-filled');
else
DomHandler.removeClass(document.body, 'p-input-filled');
}
useEffect(() => {
updateInputStyle(inputStyle);
}, []);
...
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest