Comments (9)
Everything seems to be working correctly except for tab and click on the multi-picker. Single picker works great.
from ade.
Still a few issues with the multi-list picker.
-
The delete key should remove the last item in the list. This works when using the select2 wrapper in edit-mode (at the top of the page), but doesn't work when converted from the read-version.
-
The esc is saving and closing the multi-picker instead of canceling the edit and closing the picker. Try opening the picker, add an item to the list and then press esc. It should revert the change
-
When you type into the multi-picker and it matches one of the values and you press tab or return to select it, it does, but then what you had partially typed is still there. Try typing "app" and then tab. It should select "apple", but then "app" will still be there which means that you have to press the delete key 3 times to enter a new value. It should clear the typed text when selecting a value from the list
-
Clicking the X to remove a selected value is causing the popup to save and go away. It would be better if it stayed so that you could remove more values or add a new one.
from ade.
Jake, all of the above should be corrected.
I had to do some changes in the select2.js as some of the event handling was impossible (I think) to implement otherwise. I made notes and labeled each change within the file.
I also had to comment out the top controls because they were interfering with the body click handling. Please look over the changes and see if those will work for you.
Thanks!
from ade.
Its getting better. Two things:
-
In multi-line picker, it would be better if the tab/return key only selected a value if you had typed some part of it. Right now, pressing tab/return will select the top item in the list. If you click on the multi-picker and then immediately press tab/return, it should return to read more without selecting anything.
-
I would like the top controls to still work. Perhaps we should get rid of the body click handling in a similar way that we did with the url directive?
from ade.
In regards to item 2, that body click is within the select2, (I plugged our detection code in there - https://github.com/Toodledo/ADE/blob/master/app/vendor/js/select2.js#L523 ). I will need to see if I can somehow distinguish between our modified controls and top "out-of-the-box" controls.
from ade.
Yes, it sounds like we'll have to do that.
from ade.
In regards to item 1, it looks like the way it works now is a standard multipicker behavior - http://ivaynberg.github.com/select2/#multi Do you still want me to try customizing it?
from ade.
Jake, I believe that body click should be working properly now. Please see my note about item 1 above. Thanks!
from ade.
Lets leave it here for now. Thanks
from ade.
Related Issues (20)
- Calendar should highlight today's date HOT 1
- Date filter needs popup with day of week HOT 4
- Date/Year directive needs to record the user's timezone with the timestamp HOT 3
- Date popups need adjusted triangles when on top HOT 1
- Icon popup should flip up top when it would be off the bottom of the page HOT 1
- Rich text should flip up top when it would be off bottom of page. HOT 1
- Use HTML pattern attribute to force number input
- Rename length directive to "duration" HOT 1
- Updating rating directive to use fontawesome instead of images HOT 1
- Need to test on iOS and make issues for any directives that need iOS changes HOT 1
- New value null/empty check option [FEATURE REQUEST] HOT 5
- Broadcast fieldname option [FEATURE REQUEST] HOT 4
- Package theses directives for bower HOT 3
- Conflict beetween ADE date component and AngularUI date HOT 2
- Long tex link insertion doesn't work if http omitted.
- Any prebuilt.js files for ADE? Build is failing for latest pull HOT 3
- Is ADE/dist/build/ade.min.js minified? HOT 1
- Color Picker
- Location
- Stock Ticker
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 ade.