Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text Area not scrollable #2374

Closed
jpsmith1981 opened this issue Oct 9, 2014 · 4 comments
Closed

Text Area not scrollable #2374

jpsmith1981 opened this issue Oct 9, 2014 · 4 comments

Comments

@jpsmith1981
Copy link

In regards to: #1280

My text area is still not scrollable when keyboard is open. Also when I press in the text field the cursor always returns to the top or bottom impossible to move the cursor to a desired spot.

I tried updating to Ionic, v1.0.0-beta.13. I have a very large text area with in a slide though not sure if that would be a problem:

<ion-slide class="post-slide">
       <journalheader entry="entry"></journalheader>
       <ion-content padding="true" class="has-header">
              <form>
                     <textarea ng-model="post.content" ng-keyup="save()"> Content </textarea><br/>
             </form>
       </ion-content>
       <journalfooter class="hide-on-keyboard-open"></journalfooter>           
</ion-slide>

I even tried making a new view with only the text area on the screen and still no dice.

<ion-view title="Developer Playground">
  <ion-content padding="true">
      <div class="list">
          <div class="item item-input">
              <textarea style="height:600px"></textarea>
          </div>
      </div>
  </ion-content>
</ion-view>
@jpsmith1981
Copy link
Author

Ok I got it to work by doing what someone else said in the previous thread.

myApp.directive('textarea', function () {
    return {
        restrict: 'E',

        scope: {
        },
        link: function (scope, element, attrs) {

            element.bind('touchend  touchmove touchstart', function(e){
                e.stopPropagation();
                console.log('Stoped Propagation');
            });
        }
    };
});

@drewrygh
Copy link
Contributor

Glad you got it to work, did it fix the cursor position issue as well?

@drewrygh drewrygh added the needs: reply the issue needs a response from the user label Oct 16, 2014
@Ionitron Ionitron closed this as completed Dec 3, 2014
@Ionitron
Copy link
Collaborator

Ionitron commented Dec 3, 2014

Greetings!

My sensors indicate a reply was requested over 30 days ago.

Since we have not received a reply, the issue is being closed. If you are still experiencing this issue,
please feel free to reopen it and include any information that may have been requested.

Thank you!

@adamdbradley adamdbradley removed the needs: reply the issue needs a response from the user label Dec 3, 2014
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants