InputText in Toast cannot update state correctly

UI Components for React
Post Reply
turkceng
Posts: 8
Joined: 19 Sep 2019, 22:47

22 May 2022, 09:51

Hi,

I have a confirmation dialog using toast. I want to add a InputText to take the name of the object to be deleted from the user for confirmation.

But InputText in toast doesn't update state correctly. Please find the sandbox below.
https://codesandbox.io/s/zen-water-8v4e1v

Thanks.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

22 May 2022, 14:48

I am not sure Toast was designed to have input components it was designed for display only information so it doesn't look like it will work.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests