Skip to content

[Ionic v4] Reactive form reloads the page on submitting #14890

@rathodkaran07

Description

@rathodkaran07

Bug Report

Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.

Ionic:

   ionic (Ionic CLI)          : 4.0.0-rc.13 (C:\Users\##\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.0
   @angular-devkit/core       : 0.7.0-rc.3
   @angular-devkit/schematics : 0.7.0-rc.3
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0
   @ionic/schematics-angular  : 1.0.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none

System:

   Android SDK Tools : 25.2.5
   NodeJS            : v8.11.3 (C:\Program Files\nodejs\node.exe)
   npm               : 5.6.0
   OS                : Windows 10

Environment:

   ANDROID_HOME : C:\Program Files (x86)\Android\android-sdk

Describe the Bug
Reactive forms not working as expected in ionic v4 beta.
When submitting the form it reloads the page instead, it should just submit the form values.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://reactive-form-bug.stackblitz.io/login'
  2. Fill form fields / leave empty
  3. Click on 'submit'
  4. Page reloads

Related Code
StackBlitz.

Expected Behavior
Submitting the form it should just submit the form values.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions