8000 Validator problem · Issue #8 · glhd/alpine-wizard · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Validator problem #8
Open
Open
@nohumans

Description

@nohumans

Hi!
I have problem, I don't know if it's my mistake or the library's the code

the .js

import './bootstrap';

import Alpine from 'alpinejs';
import validator from 'validatorjs';
import wizard from '@glhd/alpine-wizard';
Alpine.plugin(wizard);
window.Alpine = Alpine;
Alpine.start();

the code

<form x-data="{name: ''}">

<div>
       <div x-wizard:step.rules="{ name: 'required|numeric|min:1|max:120' }">
              <input x-model="name" id="name" type="text"   name="name" />
       </div>
       <div x-wizard:step> ... </div>
       <div x-wizard:step> ... </div>
</div>

</form>

the error

caught TypeError: Cannot read properties of undefined (reading 'def')

Eny idea?

Thanxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0