Project

General

Profile

Bug #38092

Updated by Laura Paduano over 4 years ago

During a local test of https://github.com/ceph/ceph/pull/25989 I entered letters chars into a number input field. 
 The error message "This field is required" showed up - which does not really fit in that particular case. 

 Mentioned the issue within the PR and Volker commented on this: 
 "Interesting issue. The input field is of type 'number', so it does not show chars if you type them, but you can insert them via copy&paste. 
 On the way down to the form validator the string is converted to something else automatically by Angular, i assume so, because the validator gets a null as value to validate. 
 So Validator.required does not see the entered value and assumes it is missing => because of that the required error is set. I assume we can not do anything here." 

 See: 
 https://github.com/ceph/ceph/pull/25989#issuecomment-457268459 
 https://github.com/ceph/ceph/pull/25989#issuecomment-457281025

Back