Code Monkey home page Code Monkey logo

paper-input's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paper-input's Issues

Label out of the input

I tried the paper-input element on Chrome 42 on Linux and the labels are all at the top left corner.

label-out-of-input

iron-input validity/validationMessage

I see that there's been some work done in "allow manual validation - pull #26", but as of current bits paper-input doesn't seem to pickup changes to the iron-input's validity until it's validate() method is called and validationMessage is never looked at. Should we expect seamless support for the underlying html input validity attributes in paper-input/paper-textarea or do we need to wire it up ourselves?

thanks

Paper-input "numbers only" demo broken

(this is happening before merging #26, so the probem isn't introduced there)

Typing letters in the numbers-only field looks like this:
screen shot 2015-05-18 at 11 45 38 am

This is because the paper-input-container's _handleValue isn't actually called in this case, so _inputHasContent isn't actually set.

One solution could be to always prevent invalid characters for type=number (which is the worst anyway). If that's ok, here's a PR for that: PolymerElements/iron-input#16

label bug

Label doesn't do what it supposed to be doing like the other inputs

<paper-input-container>
       <label>Intoductie</label>
       <iron-autogrow-textarea id="a1" style="font:inherit;">
                <textarea id="t1" name="intro"></textarea>
       </iron-autogrow-textarea>
 </paper-input-container>

image

Bind input `value`

I have the following code:

<form id="search" action="/search/{{q}}" method="get">
    <paper-input no-label-float label="search" value="{{q}}"></paper-input>
</form>

On the (old), paper-input I could bind the q variable from the input value directly to the action="/search/{{q}}" so that when I submit the form I have the input value binded properly. Ho to achieve it with your paper-input component?

[Paper]-Input hint not turning into label on ChromeBook apps

[Moved from Polymer/polymer. Quoted issue below.]

Hi,

I tried using the iron-input element [assume meant paper-input] and works fine when packaged as an app .crx on Chrome browser on mac or pc. When the same .crx ported to chromebook the app just loads fine but has following issues
1.The input element's hint turning into label wont just work.
2.If this input element is a part of form, then form submission wont read the values from these elements.

Attached screenshots from desktop chrome (just works fine) and chromebook (where it wont).

Thanks
Akhash


On Desktop :

chrome


On ChromeBook:
![cb_1](https://cloud.githubusercontent.com/assets/695965/7739895/ee2726ac-ff1d-11e4-9a55-0ac41cce7a62.png) ![cb_2](https://cloud.githubusercontent.com/assets/695965/7739896/f25eddf0-ff1d-11e4-8d79-7120611a838d.png) ![cb_3](https://cloud.githubusercontent.com/assets/695965/7739898/f46734f8-ff1d-11e4-9cf1-f00aad89c809.png)

Label overlaps input if value defaulted with binding

If the <input>'s value within a <paper-input-container> is data bound, the label does not properly float out of the way until the value changes

<paper-input-container>
    <label>Works</label>
    <input is="iron-input" value="Default value" 
</paper-input-container>

<paper-input-container>
  <label>Broken</label>
  <input is="iron-input" value="{{ someValue }}">
</paper-input-container>

Here's an example showing the bug: http://codepen.io/techniq/pen/QbqJyr?editors=100

Styling

Any small example how to style a paper-input? I need to change the color of the line under the input field.

paper-input bind undefined data.path to the String 'undefined' value

Bind Undefined properties like in an Object data, bind the value String in the input to 'undefined'

The undefined properties should bind like null properties as empty String.

The Code below

<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../paper-input/paper-input.html">
<dom-module id="user-demo">
    <style>
        :host {
            display: block;
        }
    </style>
    <template>
        <section> 
            <div>
                <paper-input label="Firstname" value="{{data.firstname}}" required></paper-input>
                <paper-input label="Lastname" value="{{data.lastname}}" required></paper-input>
            </div>
            <div>
                <div>Firstname : <span>{{data.firstname}}</span></div>
                <div>Lirstname : <span>{{data.lastname}}</span></div>
            </div>
        </section>
    </template>
</dom-module>

<script>
    Polymer({
        is: 'user-demo',
        properties: {
            userId: String,
            data: {
                type: Object,
                value: function () {  // Empty Data Object
                    return {  firstname: undefined  }
                } 
            }
        }

    });
</script> 

Prevent tracking inside a `paper-input`

Polymer 1.0.4 landed user prevention of gestures.

Ideally, inputs should prevent tracking when a user starts in an input.

Example:

downHandler: function(e, detail) {
  detail.prevent('track');
}

[1.0] Should have more complete set of custom properties

<paper-input-container> has --paper-input-container-color to control styling for the label and underline color together - but probably it should be possible to control label and underline separately simply by using custom properties?

required autoValidate

<paper-input label="Titel" error-message="Verplicht veld." name="title" value="{{title}}" required autoValidate></paper-input>

Why doesn't this worK?

updateLabelVisibility() missing...?

Hello,

In polymer 0.5 you could clear the values of an input and then call updateLabelVisibility() to have the label float back to its original position. I can't find a way of doing this in polymer 0.9. Any suggestion on how to do this or perhaps re-implement the old function?

Thanks.

[1.0] paper-input .focus(), .blur()

Unable to set focus on input by calling paperInputInstance.focus().

Workaround is to call it directly on its input field:
paperInputInstance.$.input.focus()

Same goes for .blur().

Additionally, on-focus, and on-blur don't work on paper-input.

Label not floating in paper-input-container

Simple container with input and label. Expected behaviour that label will be float. It's not
Chrome desktop browser latest version.

    <paper-input-container>
        <label>Your name</label>
        <input is="iron-input">
    </paper-input-container>

paper-input: text-align

The iron-input in the paper-input element should inherit the text-align property.

With this small addition it wouldn't be necessary to use an own paper-input-container/iron input construct for a custom text-align.

Right now if the paper-input gets a text-align, the label changes, but not the input value.

tabIndex not supported

There should be a way to set the tabIndex so that it can bind down to <input is="iron-input">'s tabIndex.

invalid is false even when error message is showing

If you call paper-input.validate(), and the value is invalid (required and missing), error message shows up, but paper-input.invalid is false. I'd expect invalid to be true if errors are showing up.

    <paper-input
      id="username"
      label="username"
      error-message="required"
      required></paper-input>

   this.$.username.validate();

   this.$.username.invalid is false, should be true

sorry, no testcase, still trying to figure out how use paper-input on jsbin.

lable disapears

When I set bind-value={{address_1}} back to "" the label disappear until something is reentered in the input when I use chrome's form autocomplete.

                <paper-input-container >
                    <label>Address Line 1</label>
                    <input  id="address_1" is="iron-input" type="text" name="address" required bind-value="{{address_1}}"
                            allowed-pattern="/^[a-z0-9]{2,30}$/"
                            autocomplete="address-line1">
                    <paper-input-error>Valid address required</paper-input-error>
                </paper-input-container>

on-value-changed fires twice on keypress.

just a simple paper-input with on-value-changed='myCallback', fires the value-change event twice for each keypress, both events appear to be identical.

I've been having a hard time getting all the relevant imports in order to reproduce this in a jsbin, I've done so before where only polymer.html was required but I can't find a host that has all of the required dependencies with the correct directory layout to get this working. (rawgit.com breaks the relative imports)

Help with [add-on] autocomplete implementation

Please give some tips, how to implement "autocomplete" add-on for paper-input-container.
It need 'focus/blur' event and change event.
Change event behaviour is close to paper-input-char-counter, but I didn't found any focus/blur listeners example.

font bug

googlearchive/paper-input#128

body{
       font-family: 'RobotoDraft', sans-serif;
       line-height: 140%;
 }

bug: (messes up line height on each line added)

<iron-autogrow-textarea id="a1">
         <textarea id="t1" name="intro"></textarea>
</iron-autogrow-textarea>

fix:

<iron-autogrow-textarea id="a1">
        <textarea id="t1" name="intro" style="font:inherit;"></textarea>
</iron-autogrow-textarea>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.