Skip to content

[4.0.0-rc.1] IonContent.scrollToTop is not work in production build #17029

Closed

Description

@rdlabo

Bug Report

IonContent.scrollToTop and IonContent.scrollToBottom is worked in development environment ( $ ionic serve ). But not work production build.

Ionic version:
[x] 4.x

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:
This is sample.

import { IonContent } from '@ionic/angular'
export class Tab1Page {
  @ViewChild(IonContent)
  content: IonContent;

  methodHoge() {
    this.content.scrollToTop();
  }

Other information:

2019-01-10 13 47 13

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.7.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-rc.1
   @angular-devkit/build-angular : 0.12.1
   @angular-devkit/schematics    : 7.2.1
   @angular/cli                  : 7.2.1
   @ionic/angular-toolkit        : 1.2.2

System:

   NodeJS : v8.12.0 (/usr/local/bin/node)
   npm    : 6.5.0
   OS     : macOS Mojave

Activity

  1. Silvest89 commented on Jan 10, 2019

    @Silvest89

    When are you calling this method?

  2. paulstelzer commented on Jan 10, 2019

    @paulstelzer
    Contributor

    RC.1 isn't working in produciton mode, I can confirm and collect everything under one issue -> #17034

  3. ionitron-bot commented on Feb 9, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  4. locked and limited conversation to collaborators on Feb 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions