Skip to content

Adding '&::placeholder' pseudo-element css selector breaks in rtl #337

@RamziSayagh

Description

@RamziSayagh

When I add a &::placement style to a MUI TextField I get this error:

TypeError
Cannot read properties of undefined (reading 'push')
You can see an example of the code here to reproduce this error: https://codesandbox.io/p/sandbox/runtime-cache-v573zp?file=%2Fsrc%2FDemo.tsx%3A16%2C30

The expected result is that the TextField's placeholder text should be colored magenta in the above example.

Linked to: styled-components/stylis-plugin-rtl#46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions