Skip to content

$focus does not work with top-level properties (only styles) #40

@thetarnav

Description

@thetarnav

here the scale will not go back to 1 after loosing focus

<view
    scale={1}
    $focus={{scale: 1.1}}
/>

here the color will go back to none instead of gray after loosing focus

<view
    color={0x121212ff}
    $focus={{color: 0xff1212ff}}
/>

This only looks at el.style
https://github.com/lightning-tv/core/blob/main/src/elementNode.ts#L733

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions