#using `User` component as a `Dropdown.Trigger` child gives two errors

2 messages · Page 1 of 1 (latest)

ruby mortar
#

Using the example from the docs gives numerous errors. the first can be fixed by simply giving a textValue to the first dropdown item but the other two are more problematic

Warning: Unknown event handler property `onPress`. It will be ignored.
and
Warning: Unknown event handler property `onPressStart`. It will be ignored.

this is the problematic code

    <Dropdown placement="bottom-left">
      <Dropdown.Trigger>
        <User
          bordered
          as="button"
          size="lg"
          color="primary"
          name="Tony Reichert"
          description="@tonyreichert"
          src="https://i.pravatar.cc/150?u=a042581f4e29026024d"
        />
      </Dropdown.Trigger>
      <Dropdown.Menu
        color="secondary"
        aria-label="Avatar Actions"
        onSelectionChange={(e) => JSON.stringify(e, null, 2)}
      >
        <Dropdown.Item textValue="profile" key="profile" css={{ height: "$18" }}>
          <Text b color="inherit" css={{ d: "flex" }}>
            Signed in as
          </Text>
          <Text b color="inherit" css={{ d: "flex" }}>
            [email protected]
          </Text>
        </Dropdown.Item>
        <Dropdown.Item key="configurations">Configurations</Dropdown.Item>
        <Dropdown.Item textValue="logout" key="logout" color="error">
          Log Out
        </Dropdown.Item>
      </Dropdown.Menu>
    </Dropdown>```

can anyone help?
willow kettle
#

I have the same problem