Quasar: [ERROR] - Unexpected border-top In QField When Using "helper" or "error-label" props

Created on 22 Jan 2018  路  8Comments  路  Source: quasarframework/quasar

Software version

Quasar: 14.7
OS: deepin Linux
Node: 9.4.0
NPM: 5.6.0
Browsers: Chrome 63.0.3239.84, Firefox 57.0.4
Any other software related to your bug:

What did you get as the error?

An unexpected border-top shows up when using q-field "helper" or "error-label" props

What were you expecting?

No border

What steps did you take, to get the error?

Just used the props

Screen-shot

deepinscreenshot_select-area_20180122081414

All 8 comments

Can you please share the code that produces this problem?
If this is not possible then please attach a screenshot of the chrome inspector (with styles) when you have the helper or the error-label selected in inspector.

Other info

I've made a component, which has this snippet below, but when I run the yarn dev it happens, but using the same component inside storybook it works fine.

Snippet

<q-field
    icon="description"
    :error="validation.hasError('entityName')"
    :error-label="validation.firstError('entityName')"
    class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-xs-12"
>
        <q-input
        v-model="entityName"
            @keyup="unmaskStr(entityName)"
            :error="validation.hasError('entityName')"
        float-label="Entity name"
        />
</q-field>

DevTools screen-shots

deepinscreenshot_20180122103127
deepinscreenshot_20180122113119
deepinscreenshot_20180122113133
deepinscreenshot_20180122113143
deepinscreenshot_20180122113212

Thank you, I found the problem.

Could you give me some info about this?

It looks like the control element (QInput in this case) is not registered properly inside the QField when using dev/HMR.
You can check this by doing a little test for me:

  • start with yarn dev
  • refresh the browser => all should be good
  • change something in the code => the browser should be updated => it should look bad
  • refresh the broser => all should be good

Please let me know if this is what happens.

Nope, it's not. I've seen this behavior with QModal, but not with QField.

PS: I ran yarn build command already and the took a look at the dist version, the same problem.

Fix available in next Quasar beta. https://github.com/quasarframework/quasar/pull/1469

Thanks, @rstoenescu!

Was this page helpful?
0 / 5 - 0 ratings