Hi,
I have a weird behaviour I want to check if it is a bug:
- I have a template
- with editable fields
- and spans wrapping each field.
- Two of the fields are textareas (one plain text, one rich text).
- The dbr.editable options includes 'onblur':'' so that the OK/Cancel buttons appear.
- I use dbr.css to set the height, width and white-space.
The problem is that:
- If I set the height (via dbr.css) as '10em' or '150px', the span height sizes appropriately, but the OK/Cancel buttons cease to work (don't click or respond to clicking to save the content) If I set the height (via dbr.css) as '10' or '150', the span height does not size appropriately, but the OK/Cancel buttons DO to work (save content when clicked)
One example of the snippets of code that results in the OK/Cancel buttons not working would be:
SELECT 'dbr.css', ".plaintext>.editable {white-space: pre-wrap; height: 10; width: 100%;}";
<...snip...>
SELECT 'dbr.editable', 'myplaintextfield', 'sp_DBR_update', 'inID=ID', type=textarea', "options={'html':1, 'onblur':'', 'width':'100%', 'height':'150'}";
<...and appropriate select query of course...>
TEMPLATE snippet: <div class="field" id="myplaintextfield"> <label for="myplaintextfield"> Write a short recommendation/lead-in to the job. This will be used when the job is shared via email and other forms of social media. </label> <span class="value plaintext"> {#poster_comment} </span> </div>
So - does this occur for you too? Do you have any suggestions for solving it (is it a code change, mydbr update, etc)?
Cheers,
Duane