react-voice-components icon indicating copy to clipboard operation
react-voice-components copied to clipboard

'end' event listener cannot detect empty string

Open v-stickykeys opened this issue 7 years ago • 0 comments

If I pass "" for the props.text, speak() runs setting state.started and state.playing to true, but state.started never gets set to false by the 'end' event listener.

This means that when I pass in new props, they are not detected under the current logic defined within componentWillReceiveProps.

v-stickykeys avatar Sep 27 '17 06:09 v-stickykeys