Ultima label bug

Forum rules
Please note that response time for technical support is within 3-5 business days.
matic79
Posts: 7
Joined: 16 Nov 2016, 14:15

30 Jan 2017, 13:08

I am having issues with Ultima label animation, as you can see in attached image. It happens occasionally, when form is opened in edit mode. There is no rule when this happens. I tried production mode, but still no change.
This is sample code:

Code: Select all

<div class="ui-g-12 ui-md-4">
          <span class="md-inputfield">
              <input type="text" formControlName="ZIRO_RACUN" pInputText />
              <label>Bank_account</label>
          </span>
        </div>
Any ideas?
Image

eddbog
Posts: 4
Joined: 07 Jul 2016, 17:11

30 Jan 2017, 14:38

We have the similar issue as well.
It seems that it's related to the auto-complete feature of a browser.
I assume that in this case the data are automatically inserted by browser into input fields.
Ultima does not handle such cases properly, the animation that moves label above input field does not occur, so the input field is polluted with the label.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

30 Jan 2017, 16:41

Which PrimeNg and Ultima versions are you using? I tested this issue but, I couldn't replicate it. Can you please attach a sample .ts and html page for us to replicate?

Also, can you please try Ultima2.0 version; http://blog.primefaces.org/?p=4326

eddbog
Posts: 4
Joined: 07 Jul 2016, 17:11

31 Jan 2017, 14:53

For example, the following code leads to the broken label display, like this: https://drive.google.com/file/d/0B6c8-4 ... npWd3I4N00

Code: Select all

import { Component } from '@angular/core';

export class TestData {
    constructor( public data: string) {}
}

@Component({
    selector: 'test-bug',
    template: `
        <form autocomplete="off">
            <br/>
            <span class="md-inputfield">
                <input type="text" pInputText autocomplete="off" required [(ngModel)]="model.data" name="data">
                <label>Label</label>
            </span>
            <br/>
            <button type="submit" pButton label="submit"></button>
        </form>              
    `

}) export class FcBlankComponent {
    model: TestData = new TestData ('this is a test');
}

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

31 Jan 2017, 17:57

We're checking this now.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

01 Feb 2017, 09:30

I tested this issue but I didn't see a bug like in your screenshot. My test code;

Code: Select all

@Component({
    selector: 'test-bug',
    template: `
        <form autocomplete="off">
            <br/>
            <span class="md-inputfield">
                <input type="text" pInputText autocomplete="off" required [(ngModel)]="model.data" name="data">
                <label>Label</label>
            </span>
            <br/>
            <button type="submit" pButton label="submit"></button>
        </form>              
    `

}) export class FcBlankComponent {
    model: TestData = new TestData ('this is a test');
}

Code: Select all

<div class="ui-fluid">
    <div class="ui-g">
        <div class="ui-g-12">
            <div class="card card-w-title">
                <h1>Form Elements</h1>
                <div class="ui-g form-group">
                    <div class="ui-g-12 ui-md-2">
                        <label for="textarea">Text-Bug Component</label>
                    </div>
                    <div class="ui-g-12 ui-md-4">
                        <test-bug></test-bug>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
Screenshot; Image

Which PrimeNg and Ultima version are you using? Also, did you change something in Ultima theme?

eddbog
Posts: 4
Joined: 07 Jul 2016, 17:11

02 Feb 2017, 07:57

We are using Ultima 2.0 and PrimeNG 2.0.0-rc2.

I've just tried to reproduce the issue within Ultima2 demo application and was't able to do it, so it seems that the issue is related to possible incompatibility among css styles we using in our application.
I'll continue investigation and will let you know the results.

lostdalek
Posts: 1
Joined: 09 Feb 2017, 10:11

09 Feb 2017, 17:20

Hi,
I'm able to replicate this issue on the demo page (http://www.primefaces.org/ultima-ng/#/forms) in forms and login pages.

It happen everytime you type some text in an input and use "tab" key to go to the next input.
Label will go back in it's position as soon as the cursor is moved.
Same behavior on chrome/safari/firefox (mac / latest versions)

matic79
Posts: 7
Joined: 16 Nov 2016, 14:15

27 Feb 2017, 11:09

Yep, @lostdalek is right, if u go on your demo page (http://www.primefaces.org/ultima-ng/#/forms) and use tab to get inside of your input, then type text and move on with tab button, label will go back down and over text, as soon as you move your mouse everything will go back to normal.

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

01 Mar 2017, 08:32

Hi,

We replicated the issue we will check this and get back to you.

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests