全半角チェックのバグ修正の為のコード再構築
This commit is contained in:
@@ -47,7 +47,7 @@ export class HalfWidthAction implements IAction{
|
||||
//条件分岐
|
||||
//未入力時は何も処理をせず終了
|
||||
if(value===undefined || value===''){
|
||||
return result;
|
||||
record[this.props.field.code].error=null;
|
||||
}
|
||||
//全角が含まれていた場合保存処理中止(エラー処理)
|
||||
if(!this.containsHalfWidthChars(value)){
|
||||
@@ -55,7 +55,9 @@ export class HalfWidthAction implements IAction{
|
||||
record[this.props.field.code].error="全角が含まれています";
|
||||
//次の処理を中止する値設定
|
||||
result.canNext=false;
|
||||
return result;
|
||||
}
|
||||
else{
|
||||
record[this.props.field.code].error=null;
|
||||
}
|
||||
//半角の場合問題なく実行
|
||||
//resultプロパティ指定
|
||||
|
||||
Reference in New Issue
Block a user