Ticket #234 (closed defect: invalid)

Opened 4 years ago

Last modified 3 years ago

class attribute disappears when using 2 kauri-role="messages" items

Reported by: bc Owned by: freya
Priority: minor Milestone: 0.4
Component: < Builder Logic Version: trunk
Keywords: Cc:

Description

When using the following HTML

<div kauri-idref="parent">

<div kauri-idref="child1">

<label kauri-role="label" class="input"/>
<input type="text" class="input" size="5"/>
<span kauri-role="messages" class="messages"/>

</div>
<div kauri-idref="child2">

<label kauri-role="label" class="input"/>
<input type="text" class="input" size="5"/>
<span kauri-role="messages" class="messages"/>
<span kauri-idref="parent" kauri-role="messages" class="messages"/>

</div>

</div>

It seems that kauri removes the class attribute from the <span kauri-idref="parent" kauri-role="messages" class="messages"/> line.
When placing this line outside the child2-div, this works fine.

Change History

comment:1 Changed 4 years ago by bc

Actually, kauri doesn't remove the class attribute but seems to create the complete messages-span without the class attribute. (at least it looks like this because other parameters also disapear)

comment:2 Changed 3 years ago by jgou

  • Owner changed from mpo to freya
  • Component changed from modules/kauri-forms to < Builder Logic

comment:3 Changed 3 years ago by jgou

  • Milestone changed from 0.5 to 0.4

comment:4 Changed 3 years ago by freya

I've tried this with this html code(small changes):

    <div kauri-idref="parent">

        <div kauri-idref="child1">
            <label kauri-role="label" class="input"/> <input type="text" class="input" size="5" kauri-role="input"/> 
            <span kauri-role="messages" class="messages"/>
        </div> 
        <div kauri-idref="child2">
            <label kauri-role="label" class="input"/> <input type="text" class="input" size="5" kauri-role="input"/> 
            <span kauri-role="messages" class="messages"/> 
            <span kauri-idref="/parent" kauri-role="messages" class="messages"/>
        </div>

    </div>

and fconf:

      var fconf = {
          "createURI": "${publicUri('service:/data/contact/')}",
          type: {
              members: {
                  'parent': {
                      'members' : {
                      'child1': 'string',
                      'child2': 'string'
                      
                      }
                  }
              }
          }};

And I don't see any problem. Can you clarify what the problem is?

comment:5 Changed 3 years ago by freya

Maybe this issue became invalid because of the builder changes, can you verify, bert?

comment:6 Changed 3 years ago by freya

  • Status changed from new to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.