Fix reference property resolution

This commit is contained in:
Alexander Nozik 2022-08-14 14:41:22 +03:00
parent 846e87a44b
commit ac651c4d50
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -79,7 +79,7 @@ public class SolidReference(
val stylesFlag = includeStyles ?: descriptor?.usesStyles ?: true
//2. Resolve prototype onw properties
prototype.properties.getValue(name, inheritFlag, stylesFlag)?.let { return it }
prototype.properties.own?.getValue(name)?.let { return it }
if (stylesFlag) {
//3. own styles
@ -97,7 +97,7 @@ public class SolidReference(
prototype.parent?.properties?.getValue(name, inheritFlag, includeStyles)?.let { return it }
}
return null
return descriptor?.defaultValue
}