If you are using MaterializeCSS you might want to check if these functions are working properly.
1. Select on iOS
The tapped option is not selected. The option before or after is being selected.
How to fix: https://github.com/Dogfalo/materialize/issues/6464
2. Using Modal in SPA:
If you are using MaterializeCSS with a SPA framework like Angular. When your modal is open if users click the back button in the browser or use the back key on mobile devices, your model will not automatically close.
How to fix: when a pop event happens close opening modals.
import { PlatformLocation } from '@angular/common';
this.platformLocation .onPopState((event) => {
// close openning modals
});
3. Using Dropdown on iOS
It's very hard to choose an item on a dropdown on iOS, I think it's because the dropdown disappears too fast after selecting.
How to fix: try to add option outDuration: 500 when init the dropdown.4. Preselecting a tab
I don't know if you are having the same problem, I use Angular and I find that using instance.select('tab_id') does not work for me in some cases.
How to fix: you might want to use document.getElementById('tab_id').click() (after the tab is initiated)
5. Javascript components can not be initiated.
This is not a bug but you want to make sure DOM elements are loaded before you call init function.
You might want to use setTimeout( yourInitFunction(),0).
6. Don't you Toast
You might want to check if your toasts are working properly, I remember using it on my Angular app and it's kinda buggy on iOS so I have stopped using it.
7. Using input
Sometimes I find that the input hitbox is quite small and it's hard to click on it. You might want to have name and id attribute on the input tag to make the hitbox normal.
Tell me if you have trouble fixing these issues.
Thank for reading.
Comments
Post a Comment