Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/multi instance behavior #281

Merged
merged 4 commits into from
Dec 4, 2019
Merged

Conversation

jinwoo-kim-nhn
Copy link
Contributor

@jinwoo-kim-nhn jinwoo-kim-nhn commented Dec 2, 2019

현상

버그 원인

  • 멀티 인스턴스의 경우 dom에 id값이 고유해야하지만 멀티 인스턴스의 경우는 id값이 겹칠 수 있음
  • input 체크박스의 id와 label의 for 값이 연결된 부분의 id값이 다른 인스턴스로 생성된 id값과 겹쳐서, 레이블 클릭시 for 값이 dom의 엉뚱한 부분을 찾아감

버그 수정

  • id값으로 정의하여 사용하고 있는 식별자들을 class 값으로 전부 바꿔줌
  • input id와 label for의 관계를 사용하지 않고 label 테그로 input 을 감싸서 잘못된 동작을 방지
    스크린샷 2019-12-02 오후 6 29 32

apply: this.selector('#tie-crop-button .apply'),
cancel: this.selector('#tie-crop-button .cancel'),
preset: this.selector('#tie-crop-preset-button')
apply: this.selector('.tie-crop-button .apply'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 딴 얘긴데요, this.selector는 왜 프로토타입에 안 넣고 생성자에서 매번 만들었을까요?ㅎ

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아;; 지금보니까 그렇네요 이것도 함께 수정해보겠습니다. 감사합니다.

@dongsik-yoo
Copy link
Contributor

노가다 좀 하셨네요. 고생 많으셨습니다.

@jinwoo-kim-nhn jinwoo-kim-nhn merged commit 42e9da5 into master Dec 4, 2019
@jinwoo-kim-nhn jinwoo-kim-nhn deleted the fix/multiInstanceBehavior branch March 20, 2020 08:13
HerlinMatos pushed a commit to EveryMundo/tui.image-editor that referenced this pull request Jul 2, 2020
* fix: filter checkbox behavior bug for filter

* fix: Replace all identity identifiers with class identifiers. for instance behavior

* fix: restore test example

* feat: apply code review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants