Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Laya.List.selectHandler执行时机有BUG #74

Open
Rotanticu opened this issue May 27, 2019 · 0 comments
Open

Laya.List.selectHandler执行时机有BUG #74

Rotanticu opened this issue May 27, 2019 · 0 comments

Comments

@Rotanticu
Copy link

selectHandler执行时机在selectedIndex的set里,结果如果selectedIndex没有发生变化,(对应点击同一个cell)就不会走set,也就不会走selectHandler

		if (this._selectedIndex !=value){
			this._selectedIndex=value;
			this.changeSelectStatus();
			this.event(/*laya.events.Event.CHANGE*/"change");
			this.selectHandler && this.selectHandler.runWith(value);
			this.startIndex=this._startIndex;
		}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant