if prop is object then use prop.value