Comments (2)
I've been playing around with it a bit more to try to figure this out, including deleting my entire Riot project and reducing it to just this tag that I have as an example to eliminate any chance that we were doing something weird in the project.
I've found that toggling inputs to empty strings works fine on Riot 2.6.9 but breaks as soon as I update to 3.0.0 or higher (I tried 4+ as well, all the way up to 9). Additionally, something interesting, when I installed riot-compiler
in order to compile 4+ when I downgraded back to 2.6.9 the text input issue persisted even after a fresh recompile. I had to uninstall riot-compiler
before 2.6.9 would start working again.
Now I'm wondering if this is some issue with the compiler? We've been using riotify through grunt to do our build. The relevant part of the compiler function is here in case it helps:
var projectDir = SOURCE_DIR + '/projects/' + project
var projectFile = projectDir + '/index.js'
var out = DEST_DIR + '/' + target + '/js/' + project + '.js'
var componentFiles = grunt.file.expand(projectDir + '/**/*.tag')
if(allComps) {
componentFiles = componentFiles.concat(grunt.file.expand(SOURCE_DIR + '/components/**/*.tag'))
}
var componentRequire = ';'
for (var i = 0; i < componentFiles.length; i++) {
componentRequire = componentRequire + 'require("'+componentFiles[i]+'");'
}
var fs = require('fs');
var browserify = require('browserify');
var watchify = require('watchify');
var riotify = require('riotify');
var b = watchify(browserify({
cache: {},
packageCache: {},
fullPaths: true,
debug: sourcemap,
}))
.external(['riot'])
.transform(riotify, { expr: true })
.transform(function (file, o) {
var content = '';
return file.match(projectDir+'/tags.js') == null ? through() : through(
function (chunk) { // write
content += chunk.toString();
},
function () { // end
try {
this.queue(
'"use strict"\n\n' +
'\n\n' +
componentRequire +
'\n\n' +
content
);
this.emit('end');
} catch (e) {
this.emit('error', e);
}
}
);
})
.require(projectFile, { entry: true })
.require(componentFiles)
.on('update', bundle)
.on('log', function(msg) {
console.log((new Date).toString() + ': ' + msg);
})
.on('error', console.log);
function bundle () {
b.bundle()
.on('error', function (err) { console.log('Error: ' + err.message); })
.pipe(fs.createWriteStream(out));
}
bundle();
from riot.
Duplicate of #1773
from riot.
Related Issues (20)
- Strange compile issue HOT 3
- .unmount() doesn't work with this.root.innerHTML HOT 3
- regression 7.x-->9.x [update() inside of onMounted()] HOT 4
- the 9.1.0 version route.js can't download HOT 1
- In-browser compilation with spaces after opening { bracket HOT 2
- Fix saucelabs test HOT 2
- cannot use html tags with is keyword HOT 8
- Class duplication HOT 2
- `{props.class}` and `{props.style}` are not printing values on riot-meiosis dispatch HOT 2
- Default props HOT 8
- How to get component instance by a component name? HOT 1
- Selected-Attribute shows Boolean as String HOT 2
- Runtime Slot with custom name HOT 1
- Error updating component with static template HOT 4
- Style compiled incorrectly HOT 2
- Riot coupled with Riot-route crashes on the latest version HOT 3
- Inconsistent state handling inside loops HOT 2
- Invariant failed HOT 2
- Some issues with (native) nested CSS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riot.