Skip to content

Midi not updating notation #3

@pwkip

Description

@pwkip

When I update notation in the textarea <Notation /> is updated correctly, but <Midi /> is not affected.

Code to reproduce the problem:

import React, {useState} from 'react';
import { Notation, Midi } from 'react-abc';

function App() {

  const [notation,setNotation] = useState('CDEF GABc|');

  return (
    <div className="App">
      <textarea value={notation} onChange={(e) => setNotation(e.target.value) } />
      <Notation notation={notation} />
      <Midi notation={notation} />
    </div>
  );
}

export default App;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions