Git Product home page Git Product logo

Comments (3)

mkszepp avatar mkszepp commented on May 27, 2024

@bracke ember-power-select/helpers/ember-power-select-is-selected was renamed to ember-power-select/helpers/ember-power-select-is-equal

Note: ember-power-select/helpers/ember-power-select-is-selected was documented in class as private and also ember-power-select/helpers/ember-power-select-is-equal is atm documented as private... but i think we can make it also public, beacuse it is helpful, so feel free to use it already... i will make a PR to remove this note and also add it into upgrade docs

import { helper } from '@ember/component/helper';
import { isArray as isEmberArray } from '@ember/array';
import { isEqual } from '@ember/utils';
// TODO: Make it private or scoped to the component
export function emberPowerSelectIsSelected([option, selected]: [any, any]/* , hash*/): boolean {
if (selected === undefined || selected === null) {
return false;
}
if (isEmberArray(selected)) {
for (let i = 0; i < selected.length; i++) {
if (isEqual(selected[i], option)) {
return true;
}
}
return false;
} else {
return isEqual(option, selected);
}
}
export default helper(emberPowerSelectIsSelected);

from ember-power-select.

mkszepp avatar mkszepp commented on May 27, 2024

If I add the missing handler by making a copy of one of the other handlers and renaming it, then I get a different error: no extension Field 'browser' doesn't contain a valid alias configuration /tmp/broccoli-9761wfUJ12D91P6/cache-802-webpack_bundler_ember_auto_import_webpack/node_modules/ember-power-select/dist/styles.js doesn't exist .js

Starting with v8.0.0.beta.6 there was missing the styles.js export... i will make a fix for that

from ember-power-select.

mkszepp avatar mkszepp commented on May 27, 2024

@bracke fixed in v8.0.1 and documented this helper change in migrate docs https://ember-power-select.com/docs/migrate-7-0-to-8-0

from ember-power-select.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.