zestia / ember-select-box

:capital_abcd: A faux select box for Ember apps
MIT License
64 stars 14 forks source link

Support HTML `title` Attribute #8

Closed nadnoslen closed 8 years ago

nadnoslen commented 8 years ago

I just tried to set the title attribute of one of my select-box.native components and the title attribute is not appearing in the markup. Can we add that to the component's attributeBindings array?

Workaround (in your app/app.js)

import EmberSelectBoxNative from 'ember-select-box/components/select-box/native';

// technique from http://stackoverflow.com/a/20293724/545137
EmberSelectBoxNative.reopen({
  attributeBindings: ['title']
});
nadnoslen commented 8 years ago

I can try to find time to fork, fix, test, & PR.

amk221 commented 8 years ago

Thanks. Currently on holiday, will sort next week