Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-38484

ResourceYAMLEditor: onChange doesn't fire any event when typing the the yaml document

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.17
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      In our project we're using the ResourceYAMLEditor to perform updates on our CRs.

      I have a callback configured to listen to all the changes:

      <ResourceYAMLEditor
        initialResource={YAML.stringify(fromState.cr, null, '  ')}
        onSave={updateModel}
        onChange={() => {
          console.log('Event fired!');
          dispatch({
            operation: ArtemisReducerOperations.setYamlHasUnsavedChanges,
          });
        }}
      />
      

      Unfortunately when I'm executing this, there's no log in my console indicating changes - see attached screenshot.

              cajieh Cyril Ajieh
              vszocs@redhat.com Vojtech Szocs
              None
              None
              YaDan Pei YaDan Pei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: