-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Bug] [V1.3] SfTextInputLayout does not update its color when changing theme sometimes #130
Comments
@malsabi We have reviewed the reported issue using the provided code snippet. However, we were unable to reproduce the issue "SfTextInputLayout does not update its color when changing theme sometimes" with .NET 9 and MAUI v9.0.50. The SfTextInputLayout responds to the theme switch properly in our testing. To assist you further, we have attached our tested sample and an output video for your reference. Kindly test the attached sample and let us know if you encounter the issue in the sample. If the issue still persists on your end, please share more details to help us better understand the problem. Specifically, it would be helpful if you could provide:
This will allow us to investigate further and provide a more precise solution. Looking forward to your response |
I'm sorry, I forgot to mention this extra step. However, I couldn't replicate the issue in a small repository. It still occurs in my main app, but I can't share it here for privacy reasons. Steps to Reproduce:
Observed Issue:
Additional Note:
|
Hi @malsabi , Thank you for your update and for providing the detailed steps to reproduce the issue. We have tested the mentioned scenario by creating a new Details Page, adding a Label and an Icon, and setting their colors dynamically based on the Light and Dark themes. During our testing, the text color and icon color of the LeadingView were correctly updated along with the container color. Additionally, we tested by placing SfTextInputLayout inside the Details Page, and the colors updated properly as expected. For your reference, we have attached the tested sample. Kindly check it and let us know if the issue still persists on your end. If so, please share the XAML code of the page where SfTextInputLayout is implemented, along with the relevant ViewModel and any other necessary code snippets. This will help us investigate the issue more precisely and provide you with an appropriate solution. Thanks, |
@Choza-rajan Thank you for your reply. I found out that the bug happens only when the "Details page" is implementing similar implementation of the SfTextInputLayout. So when you navigate back to the Main page you will see that the bug is happening and the colors are not updating. I have made a video and I updated the source code. inputlayout_issue.mp4 |
Description
Here is an example of my xaml snippet for using the SfTextInputLayout. I'm not sure if the issue is from my side or not, but sometimes the color works properly when changing the theme but sometimes the color is not updated. I can see this issue in Windows, iOS and android.
Steps to Reproduce
No response
Version with bug
1.0.3
Is this a regression from previous behavior?
No, this is a new issue
Last Known Working Version
1.0.2
Affected platforms
Windows
Affected Platform Versions
No response
Have you found a workaround?
No workaround
Relevant log output
The text was updated successfully, but these errors were encountered: