Skip to content

[Bug] add required to input field does not work #13

@TimoStahl

Description

@TimoStahl

Hi,

if I add required="true" to my input field it does not work.

I thought the following input should be validated correct (after #11).

Unfortunately it does not work:

working:

<Label text="Old style" required="true" />
                              <Input value="{ 
                                  path : '/text', 
                                  type : 'sap.ui.model.type.String', 
                                  constraints : { 
                                      minLength : 3, 
                                      maxLength : 10 
                                  }
                              }"
                               />

not working:

<Label text="length and required" required="true" />
                              <Input value="{ 
                                  path : '/text2', 
                                  type : 'sap.ui.model.type.String', 
                                  constraints : { 
                                      minLength : 3, 
                                      maxLength : 10 
                                  }
                              }" 
                              required="true" />
<Label text="only required" required="true" />
                              <Input value="{ 
                                  path : '/text3'
                              }"
                               required="true" />

image

see http://plnkr.co/edit/nj3kFKSFjtkZElQMi69m?p=preview

Any suggestions?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions