Giter Site home page Giter Site logo

form-object's People

Contributors

mohd-isa avatar sahibalejandro avatar sahibjaramillo avatar tn314 avatar

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

Watchers

 avatar  avatar  avatar  avatar

form-object's Issues

hasFiles() does not support arrays

Images are not uploaded/parsed when using an array. The hasFiles() doesn't do a deep search.

Example of structure:

data: {
    name: 'oh hi mark',
    images: [ File, File ],
}

Potential solution:

  • Allow a bool forceFormDataObject in the Form() constructor.

Support for custom axios object

Please add support for using a custom axios object when making the requests. Sometimes you need to manage headers, use interceptors, etc.

All put/patch requests on v1.7.0 are empty.

All data is sent using FormData, causing PUT/PATCH requests to be empty on PHP since PHP does not support PUT/PATCH when using multipart/form-data.

This change has to be reverted or addressed.

Related to issue #10

reactivity issue after errors.clear('field')

On new Laravel 5.5 project I'm working I'm experiencing an issue that I think is a Vue reactivity issue. Calling:

this.form.errors.clear('email');

certainly calls delete on the field, but even in my Vue Inspector in Chrome devtools I have to hit refresh to see the Vue instance update - and the error class on the wrapping div is not getting removed. This seems pretty straightforward to me, and that it should work. Is there something wrong here that others have experienced this too?
Here's the simple template code:

<div class="form-group" :class="{ 'has-error': form.errors.has('email') }">
    <label for="email" class="col-md-3 control-label">email</label>
    <div class="col-md-9">
        <input type="text" class="form-control" id="email" name="email" v-model="vattr.email">
        <div class="help-block" v-for="(error, key) in form.errors.getAll('email')" :key="key" v-text="error"></div>
    </div>
</div>

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.