Closed elpoelma closed 7 months ago
It's already changed to the native input on the v3 branch, so this should be fixed once we release v3: https://github.com/appuniversum/ember-appuniversum/pull/446/files#diff-d7b5258a5a79a9835ab3cbe6acb732855cab12873389eaae0f8ae4e624a7fc5d
Is your feature request related to a problem? Please describe the use case and problem it solves.
Currently, the
au-toggle-switch
component still uses the custom emberInput
element which promotes two-way-binding. It is not possible to pass thechecked
attribute to theInput
element, only the@checked
attribute.Describe the solution you'd like
If the
@checked
attribute is not passed to theau-toggle-switch
component, it could be a solution to use the nativeinput
element instead, just as howau-input
implements it. This would allow users of this library to pass all allowed attributes of aninput
element, including the nativechecked
input-attribute.Which project(s) or feature(s) is this related to
We required the use of the native
input
element in a plugin for the editor. For now, we implemented a custom toggle-switch component: https://github.com/lblod/ember-rdfa-editor/blob/ebd8b2eb6a70a010e8130a553e6bb09d55650d22/tests/dummy/app/templates/space-invisible.hbs.