Comments (7)
The jquery data
method is standard in the latest jqueries, it was added in version 1.4.3. If you check #20, they give the same error, and that was related to active_admin
having a hard dependency on jquery 1.4.2 (which is ancient). So are you using active_admin
as well?
from cocoon.
Yeah - actually we are, but this has nothing to do with the admin. I checked our jquery version - it's 1.7.1. Note that the issue I'm having isn't with the data() method itself (which would throw an error), but what it returns. Also we have other dependencies in the project that require jQuery 1.6+
from cocoon.
Ok, it was just a striking ressemblance. In an older version of active_admin the jquery was vendored. Also note that the .data
did not throw a an error, but returned nil, exactly what you describe.
But if you are not using that version of active_admin
I am afraid I do not know what could cause the .data()
method to refrain from operating correctly.
from cocoon.
nathan - hmmm, odd indeed. I'll do some more investigation and see if activeadmin is interfering in another way. I know the right jquery is being loaded but perhaps activeadmin is loading it again elsewhere?
from cocoon.
Do you have any update on this?
from cocoon.
Still not sure what was going on. data() method should have been supported and yet it wasn't - yet it works fine for all our custom code =\
from cocoon.
Ok. Not really solved, but as far as I can tell: for now a bit unsolvable. So I close this ticket.
from cocoon.
Related Issues (20)
- Rails 6 compatibility HOT 2
- Rendering the edit screen for an item with a has_one association deletes the association HOT 5
- undefined method `template' for #<ActiveRecord::Associations::CollectionProxy HOT 1
- Inserted element does not respond to change event HOT 5
- Javascript not included in Rails 7 HOT 3
- event.preventDefault(); is not working. HOT 4
- Headache with "has_many through" associations HOT 5
- Font awesome icon with link_to_add_association HOT 2
- How can i add Rails 7 ?
- Issue with application.html.haml when running rails s HOT 2
- Latest version (1.2.15) not available on NPM HOT 1
- `link_to_remove` does not remove elements from DOM, and thus does not support clearing out enum array
- load more functionality for nested child HOT 6
- Randomly auto send form after pressing on "link_to_add_association" HOT 2
- Not rendering form field in the viewthat is nested 2 step deep in the form. HOT 2
- link_to_remove_association breaks when floated HOT 1
- element.dispatchEvent(new Event(event)) doesn't work HOT 1
- Allow attaching multiple files to a nested field HOT 2
- preventDefault issue HOT 4
- Release new gem version 1.2.16
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 cocoon.