Comments (10)
@Rash96 sorry i haven't responded will try and take a look at this, this weekend.
from ajax-bootstrap-select.
@truckingsim Thank you
from ajax-bootstrap-select.
@Rash96 I just pushed up a fix and rebuilt the dist file. Can you take the dist file in the master branch and give it a shot? If it works I'll do a new release with that fix.
from ajax-bootstrap-select.
@truckingsim, the commit seems like a hack for jQuery < 1.6 (which introduced camelCasing data keys).
There is already code below what was committed that (should have) handled the overrides automatically: 9d889a8#diff-363cba4658af6719eba371f4899de525R243
from ajax-bootstrap-select.
Also, why was this bumped to 1.4.0? Isn't this just a bug fix?
from ajax-bootstrap-select.
I bumped it to 1.4.0 because I felt like it changed how the keys were handled. Even though it fixes it I felt like it had the possibility to possibly change expected behaiviour for someone. So I decided to do a minor version bump, that can be changed easily though since i haven't actually done a tag.
Also this fixes the data attributes not working. It wasn't about loading in a different locale through a file, or even using the locale option when instantiating the instance through .ajaxSelectPicker(). The data attribute was broke, even in jQuery 1.9. It was happening in our index.php example file with his example.
from ajax-bootstrap-select.
I see what you're talking about now (about this issue). I think we can do a patch version bump instead, it shouldn't affect anything (as it's not really working in the first place).
In an effort to work with the existing code, I took a look at how the data attributes are expanded into the options object in the first place. I'd much prefer to introduce a flattenedOptions
array that will automatically squash the options as needed (in this case, locale).
I'll commit shortly.
from ajax-bootstrap-select.
@truckingsim, finished with the commit and build, let me know what you think.
from ajax-bootstrap-select.
Like your solution much better. Thanks for cleaning that up. @Rash96 give it a try but I'm going to do a full release. I'm confident this is fixed.
from ajax-bootstrap-select.
@truckingsim, I have checked, it works now. Thank you!
from ajax-bootstrap-select.
Related Issues (20)
- reset/clear previous search result HOT 1
- ajax-bootstrap-select breaks required field HOT 1
- with-ajax makes changed.bs.select event to be called on search, not on change HOT 10
- New release - update of dist files
- How to hide locale.statusInitialized field?
- No results event HOT 1
- Trigger options when initialization HOT 1
- Post not not reach the server
- Attempting to destroy selectpicker and reinitialize ajaxselect creates standard select HOT 2
- Cancel the previous request if another one has been sent. HOT 1
- multiple + preserveSelected + default <options> groups unselected options into 'Currently Selected' HOT 2
- Selecting an empty option doesn't seem possible
- Add sort for selectpicker
- not working correctly in mobile
- Search Filtering
- Add support for HTML attributs "data-xxx" on custom content
- Return in HTML (Retorno em HTML)
- In Bootstrap 5.2.3 Ajax-Bootstrap-Select doesn't work HOT 8
- Select text content as you type (Selecionar o conteúdo do texto enquanto digita) HOT 1
- Make the function dynamic (Deixar a função dinâmica) HOT 1
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 ajax-bootstrap-select.