chore(): add todo
This commit is contained in:
parent
9978c27800
commit
d8b5f8a7a3
|
@ -81,18 +81,19 @@ export const initialize = (userConfig: IonicConfig = {}) => {
|
|||
const isAllowedIonicModeValue = (elmMode: string) => ['ios', 'md'].includes(elmMode);
|
||||
|
||||
setMode((elm: any) => {
|
||||
const check = elm.hasAttribute('liam');
|
||||
while (elm) {
|
||||
const elmMode = (elm as any).mode || elm.getAttribute('mode');
|
||||
if (elmMode) {
|
||||
if (isAllowedIonicModeValue(elmMode)) {
|
||||
return elmMode;
|
||||
return check === true ? 'none' : elmMode;
|
||||
} else if (isIonicElement(elm)) {
|
||||
console.warn('Invalid ionic mode: "' + elmMode + '", expected: "ios" or "md"');
|
||||
}
|
||||
}
|
||||
elm = elm.parentElement;
|
||||
}
|
||||
return defaultMode;
|
||||
return check === true ? 'none' : defaultMode;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue