Comments (6)
所有项目的写值,必须是出现列表项目后,鼠标点击或是键盘选择高亮后回车选择,选中的项目才会被设置到隐藏域中
from selectpage.
查看了源码,发现clearAll里面没有清除self.prop里面的值,斗胆清除了一下,发现上述问题解决
from selectpage.
这是插件的内部数据对象,不建议处理,我认为你还是操作方式有问题
from selectpage.
我的问题不是写值的问题,是查询北京,选中后,点击清楚按钮,然后再次输入北京,由于这行代码
if(val && val === self.prop.selected_text) q_word = '';
导致后面输入的北京无法传到后台
from selectpage.
在clearAll方法中将self.prop.selected_text 和 self.prop.selected_pre两个字段设置为空,就可以正常传值到后台。不知道这里是否是作者有意而为之
from selectpage.
代码会这么写肯定是有其功能需求
对于你描述的问题,我测试了静态数据模式,ajax数据模式,在单选模式下都没有重现你说的查询条件不会传递到服务端的问题
也许是我测试的方式不对
from selectpage.
Related Issues (20)
- 问题 HOT 1
- 加载多次的情况下会叠加加载,不会清除再加载
- 控件加载完以后如何设置默认值
- 功能建议 HOT 5
- 多项选择模式未提供全选当前页的回调事件
- 分页多选,超过分页每页的数量后,数据回显有问题
- selectPageRefresh会触发eTagRemove,并且传入了选中项目,导致删除了项目
- 2.19版本的calcResultsSize的screenTop获取是基于window对象的没办法在绝对定位的父元素自动改变位置
- 该插件不支持输入吗?
- 下拉框文本自定义后,添加默认选中
- Ajax请求下,多关键字联合查询会出Bug,加了空格后没有反应
- 选择内容太多,分页框被挤下去,无法切换下一页
- 修正默认选中值无效BUG
- 不输入文字的时候建议取消后台请求,因为可能数据很多
- ##用法咨询## 在多选模式时,输入关键字,筛选的一些疑问
- 建议在初始选中时触发一次eSelect HOT 1
- 下拉输入框在苹果手机端不能用 HOT 1
- let user to add a new entry HOT 1
- ajax情况下的beforeSend事件 HOT 3
- Ajax情况中怎么设置请求头呢 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selectpage.