Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ember 3 support #661

Open
cimtico opened this issue Apr 25, 2018 · 4 comments
Open

Ember 3 support #661

cimtico opened this issue Apr 25, 2018 · 4 comments

Comments

@cimtico
Copy link

cimtico commented Apr 25, 2018

Would it be possible to get ember 3 support?
I'm getting this error when attempting to use a modal:

keyboard.js:19 Uncaught TypeError: priorityLevel.contains is not a function
at Class.activate (keyboard.js:19)
at Class._activateKeyboard (ember-keyboard.js:21)
at sendEvent (ember-metal.js:246)
at new Class (core_object.js:149)
at Function._ClassMixinProps.create (core_object.js:297)
at FactoryManager.create (container.js:424)
at CurlyComponentManager.create (ember-glimmer.js:4178)

@jacobq
Copy link
Collaborator

jacobq commented Apr 25, 2018

I would love to work on this library so that it works with that latest versions of ember and materialize. However, I have not had any time lately :( and I don't think that @mike-north has either, sorry. Stay-tuned or feel free to submit a PR.

@ErvinSabic
Copy link

Here there been any progress on this particular issue?

@jacobq
Copy link
Collaborator

jacobq commented Mar 22, 2020

Here there been any progress on this particular issue?

Unfortunately, I doubt it. A while back I endeavored to re-write/update this addon to work with Materialize 1.x, but I abandoned that effort not too long afterward and just used materialize w/o an addon (made my own components as needed for the app I was making). If I could convince my employer to let me spend paid time on it, I'd totally try again, but right now it's not even on my list, sorry. Maybe @mike-north will give it a reboot? I think since ember-paper is meeting most people's needs there isn't a lot of motivation to make a modern Ember (e.g. Octane style) addon for materialize-css.

@ErvinSabic
Copy link

ErvinSabic commented Mar 22, 2020

While it may not be Octane style it is possible to get this to WORK. If you either delete the deprecated components entirely or fix the messages so they are compliant with the new system. This would be anything that starts with "materialize-". The deprecation message fix would make the deprecation calls in those files look like this:

materialize-select.js for example...

import { deprecate } from '@ember/debug/deprecations';
import materializeSelect from './md-select';

export default materializeSelect.extend({
  init() {
    this._super(...arguments);
    deprecate('{{materialize-select}} has been deprecated. Please use {{md-select}} instead', false, {
      id: 'materialize.deprecate.octane',
      until: '3.0',
      url: 'https://github.com/sgasser/ember-cli-materialize/issues/67'
    });
  }
});

This will make it USABLE but you will get other deprecation warnings. As you continue to use the components. Particularly with jQuery and how this library calls it. I think this could be turned into some Octane components but I literally just moved over from using mostly handlebars so octane is going to take some getting used to before I can tackle something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants