split button with Severities does not render on hover

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
AlainD.
Posts: 26
Joined: 14 Jun 2018, 22:00

04 Mar 2020, 16:58

Hi,

When applying a severity to a splitbutton, the severity is not applied on mouse hover: instead, the default blue style is applied.
The severity color is applied on the split button when not hovered, but not when hovered.

Example:

Code: Select all

import React from 'react';
import { SplitButton } from 'primereact/splitbutton';

export default function Example() {
  const items = [
    {label: "one", command: (e) => {e.preventDefault()}},
    {label: "two", command: (e) => {e.preventDefault()}}
  ];

  return <SplitButton
    label="Save"
    icon="pi pi-plus"
    className="p-button-warning"
    model={items}
    onClick={(e) => {e.preventDefault()}}
  ></SplitButton>;
};

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

11 Mar 2020, 10:49

Hi,
We fixed it for the next release.

Post Reply

Return to “Sapphire - PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest