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

Questions on TextBox when intended for a textarea of multiple lines. #66

Open
Alive24 opened this issue Jan 6, 2019 · 0 comments
Open
Assignees

Comments

@Alive24
Copy link

Alive24 commented Jan 6, 2019

Problem description

On the readme of TextBox it says "It's typically used to capture a single line of text, but can be configured to capture multiple lines of text", but I failed to find informative instructions on how to achieve it. After reading the render method of this component in source code, I find that it renders a tag anyway while I was hinted (not 100% sure) that input tag would always be only one line.

So my question is:
How do I properly make a multiple line textarea in React-uwp?

PS. I attempted to inherit the component but it didn't work for me as I get message ("Subesequent variable declarations must have the same type. Variable 'p' must be of type 'string', but here has type 'symbol[]') from tslint when I tried to incorporate the following code.

Link to minimal working code that reproduces the issue

TextBox/index.js

    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
            t[p[i]] = s[p[i]];
    return t;
};

Versions

  • React-UWP:1.2.2
  • React:16.2.0
  • Browser: Not relevant
@myxvisual myxvisual self-assigned this Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants