diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad7f74fd..f1724835 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: 💡 Lint Test and Build +name: 💡 Build on: push: diff --git a/README.md b/README.md index e7d35736..18862002 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ react-jinke-music-player npm - + npm version diff --git a/src/index.js b/src/index.js index c503734f..ae23a761 100644 --- a/src/index.js +++ b/src/index.js @@ -2406,8 +2406,6 @@ export default class ReactJkMusicPlayer extends PureComponent { } = nextProps const isEqualAudioLists = arrayEqual(audioLists)(this.props.audioLists) if (!isEqualAudioLists) { - this.initSortableAudioLists() - if (clearPriorAudioLists) { this.changeAudioLists(nextProps) } else { @@ -2416,6 +2414,7 @@ export default class ReactJkMusicPlayer extends PureComponent { if (!this.checkCurrentPlayingAudioIsInUpdatedAudioLists(nextProps)) { this.initPlayer(audioLists, false) } + setTimeout(() => this.initSortableAudioLists(), 200) } this.updatePlayIndex( !isEqualAudioLists && clearPriorAudioLists