Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Inconsistent dusk attributes #13

Open
noahlocke opened this issue Oct 12, 2018 · 0 comments
Open

Inconsistent dusk attributes #13

noahlocke opened this issue Oct 12, 2018 · 0 comments

Comments

@noahlocke
Copy link

Example:

ElementNumber::make('Home Hours', 'service_home_hours')
    ->max(1000)
    ->step(0.25)
    ->hideFromIndex(),

outputs:

<div>
  <div class="flex border-b border-40" via-resource="" via-resource-id="" via-relationship="">
    <div class="w-1/5 py-6 px-8">
      <label class="inline-block text-80 pt-2 leading-tight">
                Home Hours
      </label>
    </div> 
    <div class="py-6 px-8 w-1/2">
      <div class="w-full el-input-number" id="Home Hours" dusk="service_home_hours" placeholder="Home Hours">
        <span role="button" class="el-input-number__decrease"><i class="el-icon-minus"></i></span> . 
        <span role="button" class="el-input-number__increase"><i class="el-icon-plus"></i></span> 
        <div class="el-input"><!---->
          <input type="text" autocomplete="off" max="1000" min="-Infinity" class="el-input__inner" role="spinbutton" aria-valuemax="1000" aria-valuemin="-Infinity" aria-valuenow="0" aria-disabled="undefined">
           <!---->
           <!---->
           <!---->
         </div>
       </div> 
       <!---->
       <!---->
       <div class="help-text help-text mt-2">
     </div>
    </div>
  </div>
</div>

The dusk attribute should be on the <input> element, not the div.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant