hifive / hifivemain

main repository
http://www.htmlhifive.com/
Other
40 stars 10 forks source link

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

Closed totamura closed 6 years ago

totamura commented 6 years ago

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];
        }
      }
    }
  }
)};
simdy commented 6 years ago

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