city-picker icon indicating copy to clipboard operation
city-picker copied to clipboard

当input city-picker在<section/>内的时候单击选中无效

Open neozhu opened this issue 6 years ago • 1 comments

                                    <section class="col col-3">
                                           <label class="label" for="StartingCity">始发地</label>
                                           <label class="input">
                                       
                                                   <input data-toggle="city-picker" data-val="true" />
                                            
                                           </label>
                                       </section>

neozhu avatar May 04 '18 05:05 neozhu

我注解掉一下这行就没问题了 this.$element.on('change', (this._changeElement = $.proxy(function () { this.close(true); this.refresh(true); }, this))).on('focus', (this._focusElement = $.proxy(function () { this.needBlur = true; //console.log('focus',this); //this.open(); }, this))).on('blur', (this._blurElement = $.proxy(function () { if (this.needBlur) { this.needBlur = false; this.close(true); } }, this)));

neozhu avatar May 04 '18 06:05 neozhu