This repo contains an app demonstrating an issue in
Ember Paper, in which
an empty Ember Data relationship is not recognized by a {{paper-select}}
component as being null
. In particular, this prevents required elements
from actually being required, both while filling in the form and when
calculating its validity.
In this example, both the author and category {{paper-select}}
components
include required=true
:
Author does not have an asterisk in its label, nor does it turn red and receive the notice that "This is required" when it is blurred without a selection. Most importantly, not selecting an author does not prevent the button from activating and the form being submitted.
The difference is that the author component is passed
while the category component is passed
which is initially null
.
You will need the following things properly installed on your computer.
git clone <repository-url>
this repositorycd paper-select-related-null
npm install
ember serve
- Visit your app at http://localhost:4200.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.