Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputMask: pt styles #7020

Open
1 of 4 tasks
laylatichy opened this issue Dec 28, 2024 · 0 comments
Open
1 of 4 tasks

InputMask: pt styles #7020

laylatichy opened this issue Dec 28, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@laylatichy
Copy link
Contributor

laylatichy commented Dec 28, 2024

Describe the bug

#6998 #7011

been told that input mask pt works correctly, but after 2 days and reaching out to discord Im still unable to figure it out

how do you pass pt to InputMask?

// doesnt work, passes class but ts error
<InputMask :pt="{
  pcInputText: ['xxx'],
}" ... />

// doesnt work, passes class but ts error
<InputMask :pt="{
  pcInputText: {
    class: ['xxx'],
  },
}" ... />

// doesnt work, passes xxx as root="xxx" instead of class="xxx"
<InputMask :pt="{
  pcInputText: {
    root: ['xxx'],
  },
}" ... />

// doesnt work, passes as root="[object Object]" instead of class="xxx"
<InputMask :pt="{
  pcInputText: {
    root: {
      class: ['xxx'],
    },
  },
}" ... />

what am I missing

Pull Request Link

#7011

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

been told it works correctly, cant figure out how

Reproducer

https://stackblitz.com/edit/primevue-create-vue-typescript-issue-template-7ceumeeu?file=src%2FApp.vue,src%2Ftheme.ts

Environment

ubuntu

Vue version

3.4.15

PrimeVue version

4.2.5

Node version

20

Browser(s)

No response

Steps to reproduce the behavior

link to reproduction above

Expected behavior

class passed to pcInputText

@laylatichy laylatichy added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant