mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
fix(css): prevent duplicate system classes (#10355)
This commit is contained in:
@ -12,7 +12,10 @@ export namespace CSSUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function pushToSystemCssClasses(value: string): number {
|
export function pushToSystemCssClasses(value: string): number {
|
||||||
|
const index = cssClasses.indexOf(value);
|
||||||
|
if (index == -1) {
|
||||||
cssClasses.push(value);
|
cssClasses.push(value);
|
||||||
|
}
|
||||||
|
|
||||||
return cssClasses.length;
|
return cssClasses.length;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user