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

FormController#setSetting()でbsBalloonプラグインのreplaceElementプロパティを設定するとフォーカスアウトしてもバルーンが非表示にならない #591

Closed
totamura opened this issue Jan 29, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@totamura
Copy link

FormController#setSetting()でbsBalloonプラグインのreplaceElementプロパティを設定した状態でFormController#validate()を実行後、
入力チェックに引っかかった要素にフォーカスをあてるとバルーンが表示されるが、
フォーカスアウトしてもバルーンが非表示にならない。

・サンプルコード

this.formController.setSetting({
  output: {
    bsBalloon: {
      container: 'body',
      replaceElement: function(args) {
        if (args.name === 'xxx') {
          return document.getElementsByClassName('yyy')[0];
        }
      }
    }
  }
)};
totamura pushed a commit to totamura/hifivemain that referenced this issue Jan 29, 2018
h5.ui.validation.ErrorBalloonの_setErrorBalloon()内で呼び出す_hideBalloon()に渡すパラメータを、_setErrorBalloon()で渡ってくる引数「element」ではなく、_setErrorBalloon()内で定義した変数「target」を渡すように修正
@simdy simdy self-assigned this Apr 9, 2018
@simdy simdy added the bug label Apr 9, 2018
@simdy simdy added this to the v1.3.2 milestone Apr 9, 2018
@simdy
Copy link
Member

simdy commented Apr 9, 2018

replaceElementの設定が適用されていなかったのを修正した。(ver.1.3.2で修正)

@simdy simdy closed this as completed Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants