Skip to content

[Bug]: Notification using hasReply removes the first action #37376

Closed

Description

@stefansundin

Preflight Checklist

Electron Version

23.1.0

What operating system are you using?

macOS

Operating System Version

13.2.1

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

No response

Expected Behavior

When showing a main process Notification (i.e. not the browser Notification) and using hasReply: true and actions: [...] then the first action is missing from the list.

Example:

  const notification = new Notification({
    title: 'Hello 2',
    subtitle: '#general',
    body: 'blabla',
    hasReply: true,
    replyPlaceholder: 'Type your reply...',
    actions: [
      { type: 'button', text: 'Action 1' },
      { type: 'button', text: 'Action 2' },
    ],
  });
  notification.show();

I expect to get this notification with Reply, Action 1, and Action 2:
Screenshot 2023-02-21 at 16 44 21

Actual Behavior

I get this notification:
Screenshot 2023-02-21 at 16 43 52

Testcase Gist URL

https://gist.github.com/stefansundin/bb92e0d0cf83439e176b3d970e533104

Additional Information

I tested my fiddle with electron v20.0.0 and it had the same bug.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions