ix icon indicating copy to clipboard operation
ix copied to clipboard

Fix ix-tree click and toggle behavior

Open AndreasBerliner opened this issue 1 year ago โ€ข 2 comments

๐Ÿ’ก What is the current behavior?

  • Tree items can only be expanded by clicking the toggle icon, not by clicking the item itself.
  • A click action is not emitted when clicking the area, where the toggle icon would be shown on an item that is not expandable.

GitHub Issue Number: #1633

๐Ÿ†• What is the new behavior?

  • The click action now is emitted when the area of an item is clicked, where the toggle icon would be shown if it was expandable.
  • An optional attribute to enable toggling items by clicking on the item itself was introduced.
  • The selection of an item remains when items are expanded or collapsed clicking the toggle icon.
  • Additional tests have been added.

๐Ÿ Checklist

A pull request can only be merged if all of these conditions are met (where applicable):

  • [ ] ๐Ÿฆฎ Accessibility (a11y) features were implemented
  • [ ] ๐Ÿ—บ๏ธ Internationalization (i18n) - no hard coded strings
  • [ ] ๐Ÿ“ฒ Responsiveness - components handle viewport changes and content overflow gracefully
  • [ ] ๐Ÿ“„ Documentation was reviewed/updated (pnpm run docs)
  • [x] ๐Ÿงช Unit tests were added/updated and pass (pnpm test)
  • [ ] ๐Ÿ“ธ Visual regression tests were added/updated and pass (Guide)
  • [ ] ๐Ÿง Static code analysis passes (pnpm lint)
  • [x] ๐Ÿ—๏ธ Successful compilation (pnpm build, changes pushed)

๐Ÿ‘จโ€๐Ÿ’ป Help & support

AndreasBerliner avatar Mar 26 '25 08:03 AndreasBerliner

๐Ÿฆ‹ Changeset detected

Latest commit: e03211b5575fdfa0b189417421dadd176de73697

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@siemens/ix Minor
@siemens/ix-vue Minor
@siemens/ix-angular Minor
@siemens/ix-react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Mar 26 '25 08:03 changeset-bot[bot]