Skip to content

Action(String, Icon) constructor doesn't work in Spreadsheet #8288

@DiegoCardoso

Description

@DiegoCardoso

Description

Creating an Action using the Action(String caption, Icon icon) constructor doesn't work as expected, as the Icon instance is not created in the context menu of the Spreadsheet.

Expected outcome

The constructor should work as expected.

Minimal reproducible example

In ActionFixture, modify the getActions method and make it use the constructor with Icon:

 return new Action[] { new Action("Double cell values",
          LumoIcon.ANGLE_UP.create()), };

Steps to reproduce

  1. Modify the file mentioned above
  2. Run the Spreadsheet IT module with mvn jetty:run
  3. Open http://localhost:8080/vaadin-spreadsheet
  4. Click on the "Create new" button
  5. Load the "Action" fixture
  6. Right-click on any cell

Environment

Vaadin version(s): 24+

Browsers

Issue is not browser related

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions