primevue icon indicating copy to clipboard operation
primevue copied to clipboard

[v4 beta1: SelectButton] Pass Through missing both BUTTON and LABEL options

Open ronaldtveen opened this issue 2 months ago • 0 comments

Describe the bug

In PrimeVue v3 the <SelectButton> Pass Through options had four labels documented here for v3 (see PASS THROUGH tab)

  1. root
  2. button
  3. label
  4. hooks

In PrimeVue v4 this is limited to v4 docs (see PASS THROUGH tab):

  1. root
  2. hooks

I'm guessing (first time looking at the code) that the methode ptm() should be replaced with getPTOptions() for these lines of code:

Like it does in v3:

Reproducer

https://stackblitz.com/edit/ypxj2k?file=src%2FApp.vue

PrimeVue version

v4.0.0 beta 1

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

Open StackBlitz example and remove the commented lines from code << REMOVE THIS COMMENT LINE TO REVEAL ERROR >> (twice) to make the button key active in the PT object.

This throws a console error right away because of the missing button option described above.

Expected behavior

No response

ronaldtveen avatar Apr 12 '24 09:04 ronaldtveen