Skip to content

Editor and Forms - Resetting the Form doesn't remove the input from the Editor #8080

@maxih4

Description

@maxih4

Describe the bug

Hello,

I don't know if it's a bug or my wrong understanding of the functions, but the form event.reset() method should also clear the displayed text inside the editor field. But it is only removing the text from the variable in the background and the ui doesn't reset.

Pull Request Link

No response

Reason for not contributing a PR

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

Other Reason

No response

Reproducer

https://stackblitz.com/edit/vitejs-vite-yqgfrawu?file=src%2FApp.vue

Environment

Local Nuxt v4 Project

Vue version

3.5.21

PrimeVue version

4.3.8

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

  • add some text
  • click submit
  • click submit again
  • it shows an error that there is no content, but the editor still shows the content

Expected behavior

  • the editor should be empty after submit

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions