mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-02 14:02:46 +02:00
Minor variable name change
This commit is contained in:
parent
a591c32a24
commit
109a232171
|
@ -249,16 +249,18 @@ class Choices {
|
|||
this.currentState.groups !== this.prevState.groups ||
|
||||
this.currentState.items !== this.prevState.items
|
||||
);
|
||||
const shouldRenderChoices = this.isSelectElement;
|
||||
const shouldRenderItems = this.currentState.items !== this.prevState.items;
|
||||
|
||||
if (!stateChanged) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.isSelectElement) {
|
||||
if (shouldRenderChoices) {
|
||||
this._renderChoices();
|
||||
}
|
||||
|
||||
if (this.currentState.items !== this.prevState.items) {
|
||||
if (shouldRenderItems) {
|
||||
this._renderItems();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue