Home  >  Q&A  >  body text

VueJS cannot update component

I have this Vue 1 component that gets an object as a prop that must be filled in by the user.

The object has the following structure:

{
    property1: ...,
    property2: ...,
    inputs: {
        2130: { value: ..., comment: ... },
        2131: { ... },
        ...,
    }

}

The component is a simple modal with a form containing all necessary inputs. I want to check some content, do calculations and change cell styles based on user input.

When the modal adds %

P粉517475670P粉517475670206 days ago352

reply all(1)I'll reply

  • P粉198749929

    P粉1987499292024-03-27 12:53:49

    Better answer

    After gentle debugging, I successfully solved this problem.

    Essentially, the component I describe in the question is used for two different pages: the "Create" page and the "Edit" page. My heart skipped a beat when I saw everything working as expected in the edit page.

    what happened:

    Components are in

    reply
    0
  • Cancelreply